Граф коммитов

197 Коммитов

Автор SHA1 Сообщение Дата
Jinbo Wang 7328c67c02
Validate mainClass and projectName configs (#205)
* Validate mainClass and projectName configs

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* Update ValidationResult scheme

* Revert 'errorMessage' to a neutral name 'message' for ValidationResult

* Only report not unique validation error when projectName is not specified

* Ignore mainClass validation when the user specified the classpaths manually

* Use Object.equals to compare two strings
2018-08-28 11:16:09 +08:00
Andy Xu(devdiv) e9ed6a18b5
1. add user error in DebugException (#208)
1. add user error in DebugException
2. add user error logic in evaluation since a lot of them are reported in evaluation which is caused by known reasons(eg: compilation error).
3. enable evaluation on hover
2018-08-22 19:55:19 +08:00
Yan Zhang 46828dc729
Spawn a process directly for noDebug mode. (#207)
* Spawn a process directly for noDebug mode.

* Support to run without debugging in terminal.

* Add isDebugMode interface for frequently used logic.

* Revert "Add isDebugMode interface for frequently used logic."

This reverts commit 1d2a27f64a.

* Refactor: use separate LaunchRequest handlers for debug/noDebug mode

* Handle DisconnectRequest for noDebug mode

* Register all handlers, let handler decide what to do.

* fix typo.

* Improve code readability.

* Refactor: Use a common launch request handler for both debug/NoDebug mode

* Delay the construction time of active launch handler instance.

* Rename classes to avoid confusion.
2018-08-22 15:04:15 +08:00
Andy Xu(devdiv) f093f8bd02
fix issue #305 Debugger slow when watching variables (#203)
* fix issue #305 Debugger slow when watching variables

* Use the source containers from source lookup provider.
2018-08-21 07:56:37 +08:00
Yan Zhang 94f8ce5e75
Disable unnecessary request handlers for noDebug mode. (#204)
* Disable unnecessary request handlers for noDebug mode.

* Better naming.

* Repleace boolean with a 2-element enum LaunchMode

* Update LaunchMode.java
2018-08-15 22:22:15 +08:00
Jinbo Wang 4e6e62b9ec
Fix NPE for CompletionsProvider (#206)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-08-15 16:38:31 +08:00
Andy Xu(devdiv) 70c70a534e
fix #111: Should not include test classes in classpaths (#202)
* fix #111:  Should not include test classes in classpaths when auto resolve maven project
2018-08-14 08:41:54 +08:00
Jinbo Wang 011465ff67
Pass the pom version via the cli args (#196)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-08-03 13:44:22 +08:00
Jinbo Wang d0b2c84c49
Bump version to 0.11.0 (#195)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-08-01 15:54:55 +08:00
Andy Xu(devdiv) badca5b939
upgrade to latest eclipse version: photon (#194)
* upgrade to latest eclipse version: photon

* Update tycho to 1.2.0

* add space back
2018-08-01 15:47:11 +08:00
Jinbo Wang 908089e5b2
Add log coverage for error response (#190)
* Add log coverage for error response

* Use factory method to warp a DebugException to CompletionException

* Move the factory method to utility

* Move variable exceptionMessage to the closest code block where it's used

* Log error message throwed by evaluatable breakpoint

* Keep the overload method with the consistent arguments order

* Restrict travis ci to jdk8

* latest osx uses jdk10 and the plugin build failed, so roll back to an old osx image
2018-08-01 14:32:06 +08:00
Jinbo Wang 17b5024dd4
Add script to push p2 artifact (#192)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-07-31 12:59:54 +08:00
Jinbo Wang 33185ca79b
Add p2 update site (#191)
* Add p2 update site

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* Rename the category name to Java Debug Server
2018-07-30 09:55:18 +08:00
Andy Xu(devdiv) 19b5dcfe69
Fix attach connector in java 10 error: cannot attach in java 10 (#187) 2018-07-05 10:03:30 +08:00
Jinbo Wang 45bc72a9a9
Bump version 0.10.0 (#186)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-06-27 10:53:45 +08:00
Jinbo Wang 6ebdc9e89d
Support logpoint feature for java debugger (#184)
* Support logpoint feature for java debugger

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* Refactor the code per review comments

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-06-22 14:14:07 +08:00
Yaohai Zheng a1ff950dd5
Add eclipse settings. (#181) 2018-06-05 13:04:33 +08:00
Yaohai Zheng ef5e9e030b
Support PDE development. (#180) 2018-05-29 13:10:11 +08:00
Jinbo Wang 3a3c2d050a
Fix the project's build errors in JDK 9/10 (#178)
* Fix the project's build errors in JDK 9/10

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* Fix review comments: Move constant string to a final variable
2018-05-23 16:21:48 +08:00
Yaohai Zheng b2ce2bba76
Fix build breaks. (#177) 2018-05-23 10:28:21 +08:00
Jinbo Wang ba49448bf5
Bump version to 0.9.0 (#174)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2018-04-26 02:53:39 +00:00
Yaohai Zheng c7e2609ed2
Setup initialize for completion provider. (#175) 2018-04-26 10:44:55 +08:00
Andy Xu(devdiv) 42f857e35d
fix jdt bug of ObjectCollectedException on ExceptionRequest.enable. (#173) 2018-04-25 11:41:59 +08:00
Andy Xu(devdiv) 27d64e826f
add filepath to resolve main class for better options to vscode side. (#171) 2018-04-24 10:29:44 +08:00
Andy Xu(devdiv) 4660b0e73b
fix issue 227: Don't stop on caught/uncaught exceptions (#172) 2018-04-20 16:48:00 +08:00
Yaohai Zheng 80f8dd77a0
Add auto completion implementation for debug console. (#169)
* Add auto completion implementation for debug console.

* Fix review comment.

* Use source container to resolve types.
2018-04-20 13:33:55 +08:00
Jinbo Wang 8935dc4944
Fix the bug: Chinese characters directory will cause messy code during stack trace's source looking up (#170) 2018-04-13 11:21:00 +08:00
Yaohai Zheng c79d7ff953
Add auto completions support interface for debug console. (#168) 2018-04-08 23:19:35 -07:00
Yaohai Zheng ab4bf73c2b
Rephrase the stop event for the restart frame. (#167) 2018-04-07 19:56:42 -07:00
Yaohai Zheng cf2c472959
Bump version to 0.8.0. (#166) 2018-04-03 10:24:54 +08:00
Yaohai Zheng 67d059d8d8
Clean up engineering setting debts. (#165) 2018-04-02 09:55:55 +08:00
Andy Xu(devdiv) 6dc871db68
fix an error when main class is not specified, evaluation doesn't work. (#164)
* fix an error when main class is not specified, evaluation doesn't work.

* move the last logic corresponding to error in catch block.
2018-03-28 21:53:48 +08:00
Yaohai Zheng c7a2ba90cd
Support debug protocol. (#160) 2018-03-28 10:04:49 +08:00
Andy Xu(devdiv) 72d056ca02
fix the invalid stack exception during evaluation (#163) 2018-03-26 11:26:08 +08:00
Andy Xu(devdiv) c748730c81
bump version 0.7.0 (#159) 2018-03-15 11:38:26 +08:00
Andy Xu(devdiv) 5c6c9675fa
Merge remote-tracking branch 'origin' into andy_cond3 (#158) 2018-03-15 09:43:13 +08:00
Andy Xu(devdiv) 0b3da27c12
PR2 of conditional BP (#154)
* Add basic impl of conditional BP

* remove an empty line.

* change a better var name

* add cache for conditional breakpoint to avoid duplicate compilation

* 1. fix an issue when exception is thrown during evaluation, the program is stopped at the exception
2. update a comment

* 1. fix the issue findFirst will throw exception if none is found.
2. fix the issue of a dirty evaluation environment cause the next evaluation failure.

* user filter to filter breakpoint event only

* rollback unfinished changes.

* 1. make ensureDebugTarget void and use exception for the error handling
2. keep only one CompletableFuture in evaluate
2018-03-15 09:26:57 +08:00
Andy Xu(devdiv) 075fbffcf5
PR1 of conditional BP (#153)
* Add basic impl of conditional BP

* remove an empty line.

* change a better var name
2018-03-12 11:24:19 +08:00
Andy Xu(devdiv) 0156e649be
add condition field for conditional bp (#151)
* add condition field for conditional bp

* remove two useless helper functions.

* refine the code style for get/set
2018-03-09 14:35:41 +08:00
Andy Xu(devdiv) 700637c5bf
fix unsupported breakpoint at method entry/exit or class (#129)
* Add location type check on breakpoint

Add location type check to avoid breakpoint on method/field which will never be hit in current implementation.

* fix breakpoint pos

update lines to the next line which is valid for breakpoint

* 1. add the logic to avoid duplicate install breakpoint when updated breakpoint lines have duplicate lines.

* revert unneeded change.

* removes invalid breakpoint

* fix checkstyle hint.

* Update typo in javadoc

* remove useless if condition

* remove tailing spaces.

* update javadoc

* revert the code to modify line numbers because in vscode, the action to set breakpoint will not report to our lang server immediately

* revert changes.
2018-03-06 14:36:09 +08:00
Yaohai Zheng 405a8be910
Fix VMDisconnectionException. (#150) 2018-03-02 14:32:00 +08:00
Yaohai Zheng 471b721eda
Bump version to 0.6.0 (#149) 2018-02-01 13:41:46 +08:00
Yaohai Zheng bb142e1695
Fix general exception for native methods. (#148) 2018-01-29 11:26:35 +08:00
Yaohai Zheng 7e082b5a72
Fix the error case when contain the obsolete methods. (#147) 2018-01-22 15:52:02 +08:00
Rome Li b1be96ad4d
Add Hot Code Replace Handler (#144)
* Add Hot Code Replace Handler

* Send class name list when classes redefined
2018-01-10 13:36:20 +08:00
Rome Li b296bb2cc1
Expose HCR event source and future action (#143)
* Expose HCR event source and future action

* Fix build errors
2018-01-09 16:32:54 +08:00
Yaohai Zheng 909ab613c7
Fix issue when poping the top stack frame from a thread. (#142) 2017-12-20 22:56:18 -08:00
Rome Li 292d2dad3f
Use proper scheduler to unblock request/response streams (#141)
* Use proper scheduler to unblock request/response streams

* Schedule request processing on a new thread

* Catch exception when parsing message data
2017-12-20 16:52:52 +08:00
Andy Xu(devdiv) f649bc62d8
evaluation handler and stackframe proxy for handling InvalidStackFrameException (#131)
* 1. replace JdiObjectProxy with StackFrameProxy, because only stackframe uses it .

* 1. add a missing import.

* rename a variable

* fix compilation error after merge

* 1. add lock to prevent concurrent stackframe access
2. redefine the StackFrameProxy to only have thread and depth since the stackframe instance may be out of date
3. add stackframe provider and add logic to update stackframe during evaluation.

* add stackframe provider and add logic to update stackframe during evaluation.

* fix for a better flow

* fix for a better flow

* revert minor changes which is not needed.

* remove useless lines.

* clean evaluation inner states when the thread is to be continued.

* clean evaluation inner states when the thread is to be continued.

* lock on acquireEvaluationLock

* remove the duplicate expr check

* revert unneeded change

* refine if-else flow.

* redefine the lock

* change another method to override indicating sf is updated.

* rename some classes suggested by reviewer

* 1. refact variableProxy to contain thread reference,
2. stackframes/varaible/setVariable/evaluate will first gain the thread lock on stack frame manager.

* some minor changes of spaces and javadoc.

* convert to supplyAsync with try logic to handle lock

* Andy eval20 (#138)

* Redefine HCR event. (#133)

* Sequentially process debug requests (#135)

* bump version to 0.5.0 (#136)

* Redefine HCR event.

* bump version to 0.5.0

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

* don't use lock

* don't use lock

* don't use lock

* Minor changes: indentation, rename code -> expression
2017-12-19 15:51:13 +08:00
Yaohai Zheng 862b445f59
Add enable hot code replace settings. (#137) 2017-12-18 23:17:22 -08:00