Commit graph

647 commits

Author SHA1 Message Date
Karthik Nadig
bbeebea696
Just my code (#467)
* Add set debugger property to support VS just my code

* Just my code initial code

* Limit continue to stepping and exceptions

* Improve skipping non-user code

* Fix tests

* Just my code shoudl skip ptvsd files

* fixes and updates (#1)

* Fix typo

* Use CMD_STEP_INTO_MY_CODE and CMD_SET_PROJECT_ROOTS

* Update tests to reflect the new pydevd exception breakpoint cmd args

* Fixes and improvements

* Simplify and refactor debug options

* Test fix and fix for debug property request handler for VS

* More fixes

* Test fixes

* Address comments

* Bunch of test fixes (#2)

* Test fixes

* Restoring auto-continue till pydev side work is done.
2018-06-14 11:02:38 -07:00
Fabio Zadrozny
8427816fca Fixes #338 (output is no longer buffered). (#476) 2018-06-14 11:01:24 -07:00
Karthik Nadig
5ac67eb594 Updating Third Party Notices (#474) 2018-06-13 14:20:01 -07:00
Eric Snow
d498fd3582
Remove code duplication in runner.py. (#469)
(fixes gh-464)

The code in ptvsd/runner.py was originally copied from elsewhere and slightly adapted. Over time the APIs diverged, which lead to the failure in gh-464. This PR fixes the problem by getting rid of the code duplication.
2018-06-12 17:32:47 -06:00
Fabio Zadrozny
d635e22d33 Fixes issues dealing with handled and unhandled exceptions (#114, #446). (#471)
* Fixes issues dealing with handled and unhandled exceptions (#114, #466).

* Add command to set project root directories.
2018-06-11 17:55:39 -07:00
Eric Snow
617727ef7c
Clean up session handling in the daemon. (gh-463)
This is part of the effort to fix gh-459. While it doesn't fix it, it does clean up the Daemon code a little and resolves a potential issue with session lifecycle handling. The solution for gh-459 will build on this.
2018-06-07 11:52:35 -06:00
Karthik Nadig
726bae7f9f
Update pydevd to 1.2 (#426) 2018-06-06 15:33:08 -07:00
Don Jayamanne
3186d17ad1 Perform case insensitive file path comparisons on windows (#457)
#457
2018-06-05 13:26:11 -07:00
Karthik Nadig
552b8e27d4
Fix build paths in sign project (#458) 2018-06-01 12:00:07 -07:00
Eric Snow
e01084a991
Get the tests working on Windows. (#455) 2018-05-31 16:06:08 -06:00
Fabio Zadrozny
fa04cf82d2 Update cython with latest changes. (#449) 2018-05-31 13:16:16 -07:00
Karthik Nadig
7ca9d2093d
Fix path to setup_cpython.py (#452) 2018-05-31 12:42:16 -07:00
Karthik Nadig
0866c0c830
Fixes exception in django cause by long iter check (#443)
* Fixes exception in django cause by long iter check

* Fix linter error
2018-05-30 15:21:31 -07:00
Fabio Zadrozny
63130cd36e Breakpoints not hitting when used in conjunction with exceptions (fixes #347). (#445)
Fixes #347
2018-05-30 09:43:42 -07:00
Fabio Zadrozny
4add62eb58 When a thread is created, notify about it as soon as possible. (#430)
Fixes #106
* When a thread is created, notify about it as soon as possible.
* Properly mark internal threads as pydevd daemon threads.
Also fix tests to consider that the event related to thread
creation is given as the thread starts to run.
* Fix test flakiness and improve error message when messages are not equal.
2018-05-30 09:18:27 -07:00
Eric Snow
df207c6aa5
Add "live" breakpoint tests. (#376)
(fixes #364)
2018-05-29 10:37:38 -06:00
Karthik Nadig
64202812e2
Suspend all threads on pause (#440)
* Suspend all threads on pause.

* Update pause tests to account for pausing all threads
2018-05-25 15:21:21 -07:00
Karthik Nadig
f9457adbce
Set presentation hint for evaluate result (#439) 2018-05-25 10:25:46 -07:00
Fabio Zadrozny
5248ac1875 By default don't use frame evaluation as it conflicts with tracing frames. (#429) 2018-05-24 09:36:21 -07:00
Eric Snow
322f694601
Support re-attaching to an adapter. (#381)
(fixes #208)

Currently when ptvsd starts up (as server) it listens for a connection and shuts down when the debug session is done. This prevents re-attach. To fix this we go back to listening for a connection after getting a "disconnect" (or the client closes the connection).
2018-05-22 16:50:55 -06:00
Pavel Minaev
38b6878168
Fix #325: Debuggee no longer terminates (#424)
Terminate the process immediately instead of closing pydevd socket when disconnecting after launch.
2018-05-21 12:31:39 -07:00
Karthik Nadig
1ca7051db5
Fixes exception thrown when bytes are written to redirected io buffer (#415)
#399
2018-05-15 10:51:56 -07:00
Karthik Nadig
bb25982659
Add get next statement targets command that provides a list of valid locations user can go to. (#404)
* Add get next statement targets command that provides a list of valid locations user can go to.

* Switching to itertools

* Use ord to get the correct offset in py2

* Added comment to clarify ord usage

* Test for get next statement targets

* Fix for python 2.6
2018-05-08 14:19:33 -07:00
Karthik Nadig
36b5bdfc51
Filter ptvsd files while tracing (#408)
* Implement tracing filter for ptvsd files

* Tests for ptvsd file tracing

* Clean up regex

* Linter fixes

* Addressing comments.
2018-05-04 14:38:46 -07:00
Karthik Nadig
8a8ba9f449
Handle KeyError while getting or setting variables (#413) 2018-05-04 13:55:57 -07:00
Karthik Nadig
0b42993169
Add callback to help with filtering ptvsd files (#407) 2018-05-03 18:22:31 -07:00
Don Jayamanne
e9584084a8
Ignore unsupported values in debug options
Fixes #402
2018-05-03 10:15:44 -07:00
Eric Snow
105032c3ae
Run most of the tests under Python 2. (#405) 2018-05-02 18:05:13 -06:00
Karthik Nadig
41d362708f
Fix for DownloadCommandTests and CheckCommandTests (#390)
* Fix for DownloadCommandTests and CheckCommandTests

* Using os.linesep as per review comments
2018-04-30 09:52:11 -07:00
Don Jayamanne
90965838f3
Check if sys.path[0] is empty (#389)
Fixes issue #388
2018-04-26 16:18:41 -07:00
Karthik Nadig
ecc4940eec
Hiding debugger internals from stack, modules, etc (#372)
* Hiding debugger internals from stack, modules, etc
* Move path based internals filtering to InternalsFilter class
* Add basic tests for InternalsFilter
* Linting and other fixes.
2018-04-23 10:57:48 -07:00
Eric Snow
3598ca862e
Move the vendored pydevd under ptvsd/_vendored. (#380) 2018-04-19 19:08:39 -06:00
Eric Snow
7ca01fb2de
Clean up handling of vendored projects. (#383)
* Clean up handling of vendored projects.

* Add the ptvsd._vendored package.

* Try the new location and fall back to the old one.

* Fix a typo.

* Add ptvsd._vendored.list_all().

* Fix setup.py and tests/__main__.py.

* Exclude .pyc files (from python 2).

* Deal with implicit relative imports in 2.7.
2018-04-19 18:20:06 -06:00
Pavel Minaev
04be0aefa6 Disable 'dirty' flag for version numbers. 2018-04-19 16:45:20 -07:00
Karthik Nadig
9eb55acd7c Fixes KeyError when using DEBUG_STDLIB (#379) 2018-04-19 14:27:15 -07:00
Eric Snow
431e1d22ee
Revert " Clean up handling of vendored projects. (#374)" (#382)
This reverts commit 2c68637f8b.
2018-04-19 14:31:56 -06:00
Eric Snow
2c68637f8b
Clean up handling of vendored projects. (#374)
* Clean up handling of vendored projects.

* Add the ptvsd._vendored package.

* Try the new location and fall back to the old one.

* Fix a typo.
2018-04-19 10:32:32 -06:00
Eric Snow
3b28050e70
Move shared functions to their own module (from __main__). (#373) 2018-04-18 13:20:16 -06:00
Eric Snow
ca5327530f
Wait until the end of VSCodeMessageProcessor.start() to start handling incoming messages. (#371)
* Do not process messages until start() is done.

* Drop hacks from tests.
2018-04-18 11:29:05 -06:00
Don Jayamanne
85e9720544
Support for log points (#352)
Second part of the fix for #350
Fixes #313
Fixes #350
2018-04-17 16:22:01 -07:00
Don Jayamanne
d45e0126ce
Check whether variable is None before checking the length 2018-04-17 15:49:22 -07:00
Don Jayamanne
7d57c2ca48
Continue execution after evaluation of expressions in breakpoints (#351)
Part of the fix for #350
2018-04-17 11:17:06 -07:00
Karthik Nadig
efe1b94a38
None hit condition was not handled correctly (#366) 2018-04-16 23:04:46 -07:00
Don Jayamanne
634aac553b
Ensure SIGHUP handlers are not regsitered on windows (#365) 2018-04-16 22:30:51 -07:00
Don Jayamanne
8752baa383
Ensure SIGHUP handler is not added on Windows OS
Fixes #361
2018-04-16 22:19:13 -07:00
Don Jayamanne
ab527c29ff
Ability to enable debugging of a program via a remote debugger (#348)
Fixes #251
Fixes #252
2018-04-16 19:09:11 -07:00
Eric Snow
0b96df8e01
Fix daemon testing. (#360)
* Pass the Daemon args during tests.

* Use placeholder exit handlers until connected.

* Do not install exit handlers if already installed.
2018-04-16 17:53:02 -06:00
Karthik Nadig
bb18114b7b
Implement hit condition breakpoint (#359)
* Implement hit condition breakpoint

* Fix tests to support hit-conditions
2018-04-16 16:17:44 -07:00
Karthik Nadig
36408272f5
Merge pull request #356 from karthiknadig/hitpydevd
Add hit condition feature to breakpoints
2018-04-16 15:06:32 -07:00
Eric Snow
3ff9a5c436
Merge pull request #357 from ericsnowcurrently/listen-on-external-addr
Support listening on an external address.
2018-04-16 15:38:52 -06:00