Title: conditional breakpoint fails if String condition is set/used · Issue #782 · microsoft/vscode-java-debug · GitHub
Open Graph Title: conditional breakpoint fails if String condition is set/used · Issue #782 · microsoft/vscode-java-debug
X Title: conditional breakpoint fails if String condition is set/used · Issue #782 · microsoft/vscode-java-debug
Description: [provide a description of the issue] Environment Operating System: Windows 10 x64 JDK version: openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.2...
Open Graph Description: [provide a description of the issue] Environment Operating System: Windows 10 x64 JDK version: openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) OpenJDK 64...
X Description: [provide a description of the issue] Environment Operating System: Windows 10 x64 JDK version: openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) ...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/782
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"conditional breakpoint fails if String condition is set/used","articleBody":"[provide a description of the issue]\r\n\r\n##### Environment\r\n- Operating System: Windows 10 x64\r\n- JDK version: \r\nopenjdk version \"1.8.0_242\"\r\nOpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)\r\nOpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)\r\n- Visual Studio Code version:\r\nVersion: 1.43.1 (system setup)\r\nCommit: fe22a9645b44368865c0ba92e2fb881ff1afce94\r\nDate: 2020-03-18T07:01:20.184Z\r\nElectron: 7.1.11\r\nChrome: 78.0.3904.130\r\nNode.js: 12.8.1\r\nV8: 7.8.279.23-electron.0\r\nOS: Windows_NT x64 10.0.17763\r\n- Java extension version: 0.58.0 (March 5th, 2020)\r\n- Java Debugger extension version: 0.25.1 - 2020-03-06\r\n\r\n\r\n##### Steps To Reproduce\r\n1. [step 1] \r\nSet a conditional breakpoint with string condition\r\n2. [step 2]\r\nDebug and wait to stop at breakpoint\r\n\r\n[attach a sample project reproducing the error]\r\n[attach logs](https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#enable-logging)\r\n\r\n[Warn - 10:32:00] 20-Mar-2020 10:32:00 Failed to destory launch files, will retry again.\r\n[Error - 10:32:11] 20-Mar-2020 10:32:11 [ConditionalBreakpoint]: \r\n\r\norg.eclipse.debug.core.DebugException: \r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:829)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3641)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\r\nCaused by: java.util.EmptyStackException\r\n\tat java.util.Stack.peek(Stack.java:102)\r\n\tat java.util.Stack.pop(Stack.java:84)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.pop(Interpreter.java:165)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.Instruction.pop(Instruction.java:108)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:52)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:751)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:849)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:804)\r\n\t... 2 more\r\n\r\n[Error - 10:32:11] 20-Mar-2020 10:32:11 [ConditionalBreakpoint]: \r\n\r\norg.eclipse.debug.core.DebugException: \r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:829)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3641)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\r\nCaused by: java.lang.NullPointerException\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.Instruction.setLastValue(Instruction.java:48)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:71)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:751)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:849)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:804)\r\n\t... 2 more\r\n\r\n[Error - 10:32:11] 20-Mar-2020 10:32:11 [ConditionalBreakpoint]: \r\n\r\norg.eclipse.debug.core.DebugException: \r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:829)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:3641)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\r\nCaused by: java.lang.NullPointerException\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.Instruction.setLastValue(Instruction.java:48)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.instructions.SendMessage.execute(SendMessage.java:71)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.Interpreter.execute(Interpreter.java:69)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable$1EvaluationRunnable.run(ASTEvaluationEngine.java:751)\r\n\tat org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:849)\r\n\tat org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine$EvalRunnable.run(ASTEvaluationEngine.java:804)\r\n\t... 2 more\r\n\r\n##### Current Result\r\nResult of breakpoint condition '\"something\".equals(xRole)' is not a boolean, please correct your expression.\r\n##### Expected Result\r\nThat the condition inside the conditional breakpoint is evaluated correctly.\r\n##### Additional Informations\r\n","author":{"url":"https://github.com/blassmegod","@type":"Person","name":"blassmegod"},"datePublished":"2020-03-20T08:39:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/782/vscode-java-debug/issues/782"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42f5d301-f704-5cf9-0f97-51ca0e34e630 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB16:3699FD:650A4:7F304:6A5B7D21 |
| html-safe-nonce | b7abc55654ef5c9449e7364094a20afe1a1d7d529a0b8afb8930cc49c2f7303e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjE2OjM2OTlGRDo2NTBBNDo3RjMwNDo2QTVCN0QyMSIsInZpc2l0b3JfaWQiOiI5MjkwNTk3MTQ5MTAzNTQ3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f8f890d32d1ef102470a5692152be97b4620e2d3d691f819867bc63c90d89d84 |
| hovercard-subject-tag | issue:584918540 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-java-debug/782/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5d6e0e02e24473e2141cec07d32f82bb76b0342fdacd02c9eda4fff4b553bb9/microsoft/vscode-java-debug/issues/782 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5d6e0e02e24473e2141cec07d32f82bb76b0342fdacd02c9eda4fff4b553bb9/microsoft/vscode-java-debug/issues/782 |
| og:image:alt | [provide a description of the issue] Environment Operating System: Windows 10 x64 JDK version: openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) OpenJDK 64... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blassmegod |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-debug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width