Commit Graph

120 Commits

Author SHA1 Message Date
Egor Eliseev
b0995cd9a1 PY-72345 Pycharm 2024.1 Broken debug on Python 3.12-3.13
Add a processing function for new breakpoints.


Merge-request: IJ-MR-152628
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

(cherry picked from commit 63ebb4c7c620cf7cc3f56924619fc5adc09e25dd)

IJ-MR-152628

GitOrigin-RevId: 1f26240498360aff61ff27878118b0eb841ec082
2025-01-16 16:20:50 +00:00
Egor Eliseev
ab01b20a6b PY-72345 Pycharm 2024.1 Broken debug on Python 3.12.3
1. Fix the registration of the `PY_RETURN` signal. Stop unregistering the `PY_RETURN` signal for a `code: CodeType` after the first processing of `PY_RETURN`.
2. Fix the `LINE` callback during stepping and `SMART_STEP_INTO` commands.
3. Fix the `PY_RETURN` callback. Added handling for `SMART_STEP_INTO` and `STEP_RETURN` commands.
4. Fix the `_should_enable_line_events_for_code` function. Registration of the `PY_RETURN` and `LINE` signals for a `code: CodeType`.


Merge-request: IJ-MR-149452
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

(cherry picked from commit 8590efb7a1b2d8d6ca2393f18dcbca795e35d211)

IJ-MR-149452

GitOrigin-RevId: 4a157651e52072f3bdc186a61af7562e05a53da7
2024-12-03 16:41:46 +00:00
Egor Eliseev
ed136fcdd4 [python] Fix Python Console tests
Delete IPythonConsoleTest#testParsing: duplicates PythonConsoleParsingTest#testQuestionEnd. Fails because a virtual file is not marked as IPython.
PythonConsoleTest#testCompletionDoNotEvaluateProperty: rewrite to static.
DebugConsoleTest: delete deprecated python function.


Merge-request: IJ-MR-145576
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: 3708defece0a957708073b524995c21e7d095224
2024-09-26 13:05:09 +00:00
Andrey Lisin
88e7feabc8 PY-73432 Add sleep call in test script to mitigate potential GIL blocking by single thread
GitOrigin-RevId: 10f93a092d6004cbba284e2152ce9064991f7d1b
2024-09-17 16:06:33 +00:00
Andrey Lisin
11c4b3a9be PY-60597 Clean up test data script
GitOrigin-RevId: 5ba5b6f38ea316c3c9bffeb82b4576e31d1e3c78
2024-06-21 13:48:29 +00:00
Andrey Lisin
7de4a58087 PY-60597 Move test data for PyCharm Professional debugger feature tests to professional test data path
GitOrigin-RevId: 04d6c9229c93cd7fd81474c48fc42df1d71bc83b
2024-06-20 18:27:43 +00:00
Andrey Lisin
1199e0bdaa PY-36882 Fix debugger not working properly with joblib.Parallel when using loky backend
GitOrigin-RevId: 392e04e2e10ae404caf8c561a7c951e7eaea3c9c
2024-01-11 18:52:11 +00:00
Andrey Lisin
d51a42a60f PY-65353 Add test
GitOrigin-RevId: 9e8beb9b56fae71040e312ab92f6d09e56f6395b
2024-01-09 15:01:02 +00:00
Andrey Lisin
fa03d3e322 PY-37366 Add test
GitOrigin-RevId: c5ca2bfe4cd9a8c9e30deccd5658a71a317e9b23
2024-01-04 18:55:51 +00:00
Egor.Eliseev
fbf14c190d PY-43327 Add parameters to doctest configuration
Remove pydev warning if old trace function equals to new one.
Add argparse for `docrunner.py`.
Add tests for `doctest` with parameters.
Add debugger tests for `doctest` with parameters.


Merge-request: IJ-MR-111959
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: 608080b3b5db93718f62a3dddd17893fe8118539
2023-09-04 13:18:44 +00:00
Egor.Eliseev
c368c2f4f1 PY-48235 Add quoting policy for PyXCopyValueAction
IJ-CR-110671

GitOrigin-RevId: 768a88b91943de9dcab5c5023073c82c5f8c93d7
2023-08-18 12:11:01 +00:00
Egor Eliseev
edd05b77c0 PY-37668 Copy full value from Variable view
IJ-CR-110411

GitOrigin-RevId: f2daf5ff2aea1c94acf2e796db02efd121655a99
2023-08-17 17:02:52 +00:00
Egor.Eliseev
ebf5d71eef PY-35529 Use repr by default in Variables View
1. If `__repr__` is overridden - use `reprlib` or `repr()`
2. If `__str__` is overridden - use `str()`
3. Use `reprlib` or `repr()` otherwise

IJ-CR-110917

GitOrigin-RevId: dff583d556600a8c77024a4d1bd86034f24f9bf9
2023-07-18 08:33:05 +00:00
Artem Mukhin
9a7d882884 PY-59555: Fix testTypeHandler for Python 2.7
Unicode prefix `u` is visible inside string literals when debugging with Python 2.7, in contrast to Python 3.

GitOrigin-RevId: 10b774e0c88df716b6ab32a9a1297c7473ef38b8
2023-03-30 12:06:48 +00:00
Egor Eliseev
2ecdf794a3 PY-57290 Debugger asyncio improvements
Patch field '_ready' from asyncio event loop for internal coroutine.
Patch `asyncio.new_event_loop()`
Add wrapper 'PyDevCoro' for internal coroutine.
Patch `asyncio.Task.__init__`, `asyncio.ensure_future` and `asyncio.call_soon`.
Add tests for `asyncio.gather` function.
Patch `asyncio.new_event_loop()`.

IJ-CR-99158

GitOrigin-RevId: 881087716a84c8ebb5331de4e2829bf38f2090e2
2023-03-22 16:10:02 +00:00
Egor Eliseev
66297780d3 PY-56120 Add tests
GitOrigin-RevId: 12b363fa88b6722f6056cb82f7f8a91cacd3336a
2022-11-14 06:32:11 +00:00
Egor Eliseev
7ec061b418 PY-37311 Patch interpreter command for Python 2
IJ-CR-26283

GitOrigin-RevId: 24575b5177831685d56f66c5546800c66553bd19
2022-09-07 12:39:17 +00:00
Egor Eliseev
6260c013df PY-28396 Sci Data doesn't show complex numbers
Change `PY_COMPLEX_NUMBER` regexp.
Add quoting for structs fields.
Add check for empty ArrayTable values.
Add test.

GitOrigin-RevId: 80b23a20c7558a1885968d5a61e3dc72cfd9643a
2022-08-31 06:02:57 +00:00
Egor Eliseev
6d6205dfb0 PY-49991 Load elements for groups on demand
Load Special Variables and Return Values groups only on demand

IJ-CR-20988

GitOrigin-RevId: 7c4fef6c7f3a77e01b8e3f31782440265a08823b
2022-06-28 13:51:06 +00:00
Egor Eliseev
eb833f7e5c PY-31680 Debugger Console throws error if dict contains unicode fields
Add correct handling of call 'quote' function for Python 2 and 3.

GitOrigin-RevId: e5c0840e4f5c1ff7b81ddfc0fcfba73953e8d004
2022-06-22 11:05:30 +00:00
Egor Eliseev
1f3642a700 PY-43591 Debugger stops twice on breakpoint if exception was raised
Add checking: if exception and breakpoint -> don't stop.
Generate binaries.

GitOrigin-RevId: 00205f00752b6ce04e6fa23129eeb2d4f3666a1e
2022-05-30 15:14:33 +00:00
Egor Eliseev
63a54778f6 PY-16583 Incorrect escaping in debugger
GitOrigin-RevId: 1f08062cd5715658ab17aeca3cfe52b275406936
2022-01-24 18:45:09 +00:00
Egor Eliseev
69b843ed0b PY-28563 "Set value" doesn't work
(cherry picked from commit 0c42984de25e97e748e719dccfe3657fc4eb79f1)

IJ-CR-15473

GitOrigin-RevId: 93090f9d81d14009120682796c11862dbe9e3e98
2021-10-26 11:28:52 +00:00
Elizaveta Shashkova
65d516de9d PY-45659 Add test for isolated mode
IDEA-CR-69971

GitOrigin-RevId: 9ec5bc07508724522604a4be9c4a848c013c4193
2020-12-31 11:13:02 +00:00
Elizaveta Shashkova
69ddf4c068 PY-19764 Add tests for custom classes with shape
GitOrigin-RevId: 140b0b48afbaa2a68c02910691bb975e979ba5e7
2020-12-31 10:47:23 +00:00
Andrey Lisin
4a928d409f IDEA-CR-65035: Add tests for drop to debugger on test failures feature
(cherry picked from commit 202d5a6aadd282fb5144d16039e5661c22d567ec)

GitOrigin-RevId: c290897d0eff63f4e4192d7368c272e9a4e73ba8
2020-07-16 07:33:25 +00:00
Nikolay.Smirnov
1860429bea IDEA-CR-64981: [PyCharm] PY-28279 Add test with tuples in DataViewer
GitOrigin-RevId: a8cac87bb5b75e063cb3cef8999cb0f68d003d11
2020-07-14 12:15:03 +00:00
Elizaveta Shashkova
5f029d5a02 IDEA-CR-58836: PY-39526 SciView of dataframes converts integers to floats
Use by default ".5f" formatting for floats and "%s" for other types. The user-visible formatting will be "%s"

PY-39526 Rename function

Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com>

GitOrigin-RevId: a8af904b55e703848592efad7d0642ccef12a0d1
2020-03-10 13:08:40 +00:00
Andrey Lisin
7c596c98f2 IDEA-CR-59323: PY-40931 Don't force stepping to project scope when step over is called from outside it
(cherry picked from commit 1c21abc1e8bb66f3b15ab54a82bb7af65576e5ea)

GitOrigin-RevId: 4d35a6921d0859ec44d36a26589220592ba55b26
2020-03-10 09:34:33 +00:00
Andrey Lisin
2f87d7c3ae IDEA-CR-58850: PY-24748 Support step over for coroutines
(cherry picked from commit b66707327989822f23c57aa19fa81dd38a02ed67)

GitOrigin-RevId: e85b75676c138cf9ce2de0ac07a88f19a730f5c0
2020-03-02 16:09:44 +00:00
Andrey Lisin
5029797a6c IDEA-CR-57291: PY-37771 Port new IDEA debugger smart step into UI/UX to PyCharm
(cherry picked from commit 4fefae6a1d9fbc6df174d53222ceba9208691b65)

GitOrigin-RevId: d6e65ace1378765be246fe09a86d2bff133855df
2020-02-21 17:31:28 +00:00
Elizaveta Shashkova
5c67bc0373 IDEA-CR-56419: PY-34555 Clean module flag for child process
If a process was started with `-m` key (and converted to `--module` flag), this parameter will be passed to all its child processes. So we need to clear this flag in SetupHolder before patching arguments

GitOrigin-RevId: 00ae0b23fc6107bee75272a03a5bd15ca474fbc7
2019-12-10 15:38:42 +00:00
Andrey Lisin
eb956ca29d PY-38378 PY-38424 Fix updating variables in debugger console
We now access the `frame.f_locals` attribute only once. Multiple access leads to the loss of the changes we have made. We also alter the second argument of the `PyFrame_LocalsToFast()` to 1 to ensure that all the deleted variables will be wiped out from the frame locals.

(cherry picked from commit 28abff39b2c37f30651db220e8700032a629ce73)

GitOrigin-RevId: 8514da7ec187c1192ea9cdf851f89f008242fc30
2019-11-25 09:31:23 +00:00
Andrey Lisin
ba365df917 PY-38941 Support debugging of processes created with posix_spawn
(cherry picked from commit e55c2168595e22e80a8f95c2e3812cf7f687c31c)

GitOrigin-RevId: 4db4aaaa9ce7198cfb5177bac262f9f72b92cdee
2019-11-19 17:05:35 +00:00
Andrey Lisin
5997fbedf0 PY-38490 Fix debugging when special symbols are in file path
(cherry picked from commit c69c6d560f47552b736cd530106447de19e85e90)

GitOrigin-RevId: a29879d863e635020caf4322f8378b5789246a93
2019-11-15 16:31:36 +00:00
Andrey Lisin
a7293b3881 PY-23492 Properly handle percent sign in data frame column names
(cherry picked from commit 9e9ca85bb307c9fb784998bc49732b6c2674158b)

GitOrigin-RevId: 9ed3bae6c8776f6be4e504b297e7c0e838420eaa
2019-11-07 02:40:58 +00:00
Elizaveta Shashkova
028a0c2372 IDEA-CR-53299: PY-37497 Variables View cleanup
GitOrigin-RevId: 2d7ce065e5b42f6a43320ffd735f978851529805
2019-10-14 10:32:59 +00:00
Andrey Lisin
4e5852d366 IDEA-CR-52512: PY-26541 Fix formatting in data view panel
GitOrigin-RevId: ddcb33ebe7ad16c46def53c0cfd40e3bbcd27c77
2019-09-27 09:32:40 +00:00
Andrey Lisin
2d8453d970 PY-37645 Add Python debugger fallback exception hook
GitOrigin-RevId: e5f9bbd865e25eeae19842b983ba6855dfeba250
2019-09-16 16:33:16 +00:00
Andrey Lisin
abd6ecef4d PY-37580 Add unit test for stepping into in new thread
GitOrigin-RevId: 4e27a685170fe20201e1aeb579747f4f23d03628
2019-09-03 15:34:42 +00:00
Andrey Lisin
13703f2d53 PY-35999 Ignore exceptions in library files when debugging
GitOrigin-RevId: aea3f28d3941c9add7ee0620d382371d9246f1a6
2019-08-27 15:43:02 +00:00
Andrey Lisin
e97594f3ec PY-36512 Fix code evaluation in Python debugger console
GitOrigin-RevId: 957840f627471337a6174b356420a39eb87bc71b
2019-08-27 15:43:02 +00:00
Andrey Lisin
ce63f394dd PY-36726 Fix debugging for some old Python versions
GitOrigin-RevId: 61fe96ab129b7eddb8394faa67e8557480bc2982
2019-08-06 18:06:34 +03:00
Andrey Lisin
6c8c1beb19 PY-37120 Python debugger - properly stop on syntax errors
GitOrigin-RevId: e6280732fc658ed22741ac3cc5ba2535b4979e05
2019-08-05 22:03:31 +03:00
Andrey Lisin
ae87e93cf9 PY-33328 Don't show false settrace warning for Python 2
GitOrigin-RevId: b7ef9da41da2e70e19e2b8ba07d32fd7d7663025
2019-07-04 15:03:18 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Julia Beliaeva
3fee046d20 [vcs-log] cleanup RootCellRenderer
GitOrigin-RevId: bba216626193ac756cd133b8ae9bc4e577abea42
2019-06-10 04:10:14 +03:00