Andrey Lisin
9629463526
IDEA-CR-61812: Fix issue when pydevd threads are been traced and print warning if it has happened
...
(cherry picked from commit 9dfb2b4c903c5fd3d6d903fc4f2171c3738667b9)
GitOrigin-RevId: 7bf235aeb854030823162a3ba5a778e46f37c3b2
2020-04-26 11:55:03 +00:00
Andrey Lisin
10a42be9c3
IDEA-CR-61853: PY-41642 Don't rely on Python version when importing _unpack_args, try and catch error instead
...
The `_unpack_args` function doesn't seem to be available in early versions of Python 3. So it's better not to rely on the Python version check and just try importing the function and execute the fallback code inside the except clause.
(cherry picked from commit 0b5125e3c00602372528ae545e9d5677939619ee)
GitOrigin-RevId: 294d436d661baf8f8329fb1e2cff755391a49a50
2020-04-23 11:53:06 +00:00
msoxzw
f05dd3eb6e
IDEA-CR-61407: PY-14631 Use IPython config file in Python Console
...
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com >
GitOrigin-RevId: ac9142f265ef0f4c48e5207c500fb431f903f24e
2020-04-14 09:20:37 +00:00
Sylvain MARIE
ae742eedcd
IDEA-CR-61390: PY-38151 (PR #1333 ) Fixed python console autocomplete by adding support for descriptors and metaclass members (When the object to autocomplete is a class)
...
GitOrigin-RevId: 606a4fc0373c6a8e12a77aefceeb04f3d20643a1
2020-04-13 12:54:24 +00:00
Elizaveta Shashkova
899ad66948
IDEA-CR-61155: PY-31931 Importing matplotlib with PyQt5 backend causes Python Console to hang
...
Replace exec() with processEvents() to avoid freezes during command execution
GitOrigin-RevId: 76ecce9a878f0d167bfc74e3b74bbce0d289bc31
2020-04-06 12:06:52 +00:00
Elizaveta Shashkova
4041ebbfef
Remove unreachable code
...
GitOrigin-RevId: b5c1f8ba61df2aaad29744b1ede69ea568a66f6d
2020-03-25 18:44:05 +00:00
adw1n
05364772dc
IDEA-CR-60415: PY-41234 #pr852 Fix patching args in monkey patched subprocess module
...
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com >
GitOrigin-RevId: 26468a4d6629e71ccdb2a9c9931fd2ddc39b6488
2020-03-25 17:17:50 +00:00
Andrey Lisin
4f7ea8139f
IDEA-CR-60229: PY-41143 Call logging function with right number of positional arguments
...
(cherry picked from commit 88d4821b590d130f94355da23182c4393d60dbff)
GitOrigin-RevId: bae17df562bed9753f212e03c487bca3336dbc46
2020-03-20 10:09:08 +00:00
Andrey Lisin
895e3b3c72
IDEA-CR-60140: PY-39809 Don't truncate long lines in Python console view
...
(cherry picked from commit 79b03395640ff51ce279d548278e1b149cb995a7)
GitOrigin-RevId: 36b22d572539d78dfe36ea881200be42a79e6220
2020-03-17 20:53:55 +00:00
Andrey Lisin
53bd8c07e5
IDEA-CR-60027: PY-39307 Add pydevd_attach_to_process to packages to ensure it will be installed in the right place
...
(cherry picked from commit d9e435a799225665126e97bdf92db042106fe83d)
GitOrigin-RevId: 84e4059285e63e6bf3c7868b7046bb476ae6069b
2020-03-17 20:53:55 +00:00
Andrey Lisin
8897eed94f
IDEA-CR-60026: PY-40721 PY-40723 Fix troublesome cases in bytecode parsing and make sure internal errors are printed only in debug mode
...
(cherry picked from commit 9444416aa25d4188bcafa47253f9c9bd7e40932e)
GitOrigin-RevId: 6d5f0a70cb34378a11341bfd68f05abe338c37d9
2020-03-17 20:53:55 +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
Elizaveta Shashkova
26ecad60eb
IDEA-CR-58711: PY-38658 Breakpoints don't work if a module is named protocol.py
...
Do not add protocol.py to ignored files during automatic generation
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com >
GitOrigin-RevId: a2075419ea118ac66a2061ebeb8d2e15198e645a
2020-02-25 09:05:49 +00:00
Andrey Lisin
3aa63f4f04
Fix attribute error when resetting smart step stop frame on step into and step over commands
...
GitOrigin-RevId: 5b8193f9ff5af8de7975e0b6a634d2984dc3f9b6
2020-02-21 17:31:28 +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
b70624b91b
IDEA-CR-58361: PY-39954 Wrap hasattr() call with try-except because of objects with overloaded __getattr__
...
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com >
GitOrigin-RevId: b810bfce85531e2ba7005dff0ca702e30317f0fa
2020-02-14 09:41:40 +00:00
Andrey Lisin
a22effa122
PY-38347 Fix frame evaluator opcodes to lines mapping procedure
...
The previous version of the procedure could miss breakpoints when extra `EXTENDED_ARG` instructions are added before the injected code. This happened because in some corner cases after updating the opcodes to lines mapping an `EXTENDED_ARG` instruction could land as the last instruction in a line, and the instruction which argument it extends - on another. This lead to the situation when it was impossible to detect that we have hit the next line. These changes also add the ability to trace opcodes when the `PYDEVD_TRACE_OPCODES` environment variable is set to `True` (available only for Cython) to ease the debugging of such cases in the future.
(cherry picked from commit 77399d3b7b2b9bc6aac1b85d59ae305500cb6ecb)
GitOrigin-RevId: 105bf9d3d2cc51a940b03b1cb11c07e97074048b
2019-12-19 14:08:32 +00:00
Elizaveta Shashkova
5e6dcf687f
IDEA-CR-56420: PY-39414 Fix TypeError exception with Task class under Concurrency Visualizer
...
Replace Task class with another mock class, not function
GitOrigin-RevId: 4f522b3308d3289b3d64f9d19e51908c90985368
2019-12-16 10:03:13 +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
Serhii Charykov
3fbb05afd2
PY-38963 Fix string formatting exception ( close #1240 )
...
(cherry picked from commit e0a82bb25b7b6d8bb03e89733647ecbe2496d7cc)
GitOrigin-RevId: 4ee0751e58aadc0bec77fc2eb36fd7a442e0754e
2019-12-04 16:06:45 +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
e53d9fa59a
PY-37770 Add tox config for running debugger Python tests
...
(cherry picked from commit 1635c6aab4d3d78d34244bd3329b4486d1a21b20)
GitOrigin-RevId: 4b5d3b9d18f0457d55d3925525184dc8939f3f99
2019-11-18 09:07:47 +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
89faae9bfd
Fix Windows platform detection for IronPython
...
(cherry picked from commit f202f6faf37c5f38cba7caf8c2a4d92dfd76c659)
GitOrigin-RevId: b57ae879f9b466c6130e868bab1144831ef46cf6
2019-11-15 09:09:40 +00:00
Andrey Lisin
73d20cd1cd
PY-38704 Backport attach to process updates from PyDev
...
(cherry picked from commit 11777e3e2639202817fa70d8453fed50720845ce)
GitOrigin-RevId: 2ae85368c63f1a282c4358d8610a5724767871a2
2019-11-11 10:32:50 +00:00
Elizaveta Shashkova
25785c3200
IDEA-CR-54438: PY-38760 Define a separate exception type for sending completion errors to IDE side
...
Also fixes EA-214990
GitOrigin-RevId: 8ff2ce9d6ffcf893447893d6c8d9e1ae780cc804
2019-11-07 02:40:58 +00:00
Andrey Lisin
a28ce64436
PY-37470 Add debugger binaries for Python 3.8
...
(cherry picked from commit d283c21ce11bb9f5f2a73ed4c868fdf164923948)
GitOrigin-RevId: 34448b8b0cc73f0944c03f8a7b9580469ff19c93
2019-11-07 02:40:58 +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
09a9ee68bd
IDEA-CR-53841: PY-20690 Create a wrapper class for Queue instead of function
...
GitOrigin-RevId: ecb8c03b8039fb5677f9c355cdbdd19773dd65dd
2019-10-22 11:05:24 +00:00
Elizaveta Shashkova
028a0c2372
IDEA-CR-53299: PY-37497 Variables View cleanup
...
GitOrigin-RevId: 2d7ce065e5b42f6a43320ffd735f978851529805
2019-10-14 10:32:59 +00:00
Elizaveta Shashkova
626a14835a
IDEA-CR-53093: PY-37226 Revert pydev prefix for test directories
...
GitOrigin-RevId: 3d4abb05167e85cb44720e36d0fa3b949f199f30
2019-10-08 12:33:08 +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
1c9f9d5bcf
PY-37868 Fix exception with pandas data frame in debug console
...
GitOrigin-RevId: 259cc24d149a5a5cb3adfc15a5407369c1683d41
2019-09-18 14:47:06 +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
ce85c0c191
PY-37757 Don't fail when running subprocess on IronPython
...
GitOrigin-RevId: b1f77734413a4d027137bad55a87e0008b8d9590
2019-09-16 10:02:18 +00:00
Andrey Lisin
a887688004
PY-36952 Hide debugger related stack trace when debugger is stopped
...
GitOrigin-RevId: e40dbaf9829677bec78338c016ea40091a2c713c
2019-09-16 09:32:16 +00:00
Elizaveta Shashkova
a183d5dcac
PY-37361 Add missing import
...
GitOrigin-RevId: e40d6910cf89b262e0c944c4055c80f57d0c640c
2019-09-11 13:03:59 +00:00
Andrey Lisin
bfe9d87d54
PY-37212 Show traceback when terminating on uncaught exception
...
GitOrigin-RevId: 0c2772e0449a5ff5be06d1b0398e70abeae56dfd
2019-09-03 15:34:42 +00:00
Andrey Lisin
102a335f22
PY-37092 Add Foundation framework hack for Python 3.5 and 3.6
...
GitOrigin-RevId: e75e3c30800fa8bf24dc249602e574d6daef21cb
2019-08-30 16:02:59 +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
Elizaveta Shashkova
c89cf63e16
IDEA-CR-51686: PY-37188 Use original variable's name if slice name is temporary. Make error handling similar to Python Console
...
GitOrigin-RevId: 5f4172388a3eb0eac6ca1227111af9b7d6da6389
2019-08-26 14:04:14 +03:00
Elizaveta Shashkova
0a758ef812
IDEA-CR-51461: PY-37150 Rebuild windows and mac binaries
...
GitOrigin-RevId: d89cbd8d6cddc52c73ac217519f2955f2a464be7
2019-08-16 17:02:49 +03:00
Elizaveta Shashkova
dca39399b5
IDEA-CR-51461: PY-37150 Check if frame is None
...
GitOrigin-RevId: f385da9b8b6f21274a08c84d910c44fabdf79564
2019-08-16 17:02:49 +03:00
Elizaveta Shashkova
06eb532762
IDEA-CR-51224: PY-37204 Remove accidentally added code from pydev_console_utils, because it's already exists in pydev_code_executor
...
GitOrigin-RevId: d8604efa46ecbe3529d1b22b3bb528a2a11c9990
2019-08-16 17:02:49 +03:00
Elizaveta Shashkova
9ba53b33b3
PY-37012 Revert accidentally removed import
...
GitOrigin-RevId: 64554b0a09ec8c09d23d4c49dfad823ccbaa75ee
2019-08-15 14:03:28 +03:00
Elizaveta Shashkova
38df7d72b5
IDEA-CR-51343: PY-37012 Convert filename to str if possible or skip
...
GitOrigin-RevId: 528dc6e355f569a6e8c18d2c8071d6385cf038a8
2019-08-14 19:03:15 +03:00