debugging - Visual Studio Code - "Error:spawn jdb ENOENT" trying to debug java app -


this question has answer here:

i trying debug java application in visual studio code , getting following error: "error:spawn jdb enoent".

vs code suggesting update launch.json have following:

{     "version": "0.2.0",     "configurations": [         {             "name": "java",             "type": "java",             "request": "launch",             "stoponentry": true,             "cwd": "${filedirname}",             "startupclass": "${filebasename}",             "options": [                 "-classpath",                 "\"${filedirname};.\""             ]         },         {             "name": "java console app",             "type": "java",             "request": "launch",             "stoponentry": true,             "cwd": "${filedirname}",             "startupclass": "${filebasename}",             "options": [                 "-classpath",                 "\"${filedirname};.\""             ],             "externalconsole": true         }     ] } 

i building using maven , have following vscode plugins installed https://github.com/donjayamanne/javavscode.

maven pow.xml

<project xmlns="http://maven.apache.org/pom/4.0.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/pom/4.0.0     http://maven.apache.org/maven-v4_0_0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>com.ams-sample</groupid>   <artifactid>amssample</artifactid>   <packaging>jar</packaging>   <version>1.0-snapshot</version>   <name>numbergenerator</name>   <url>http://maven.apache.org</url>   <dependencies>     <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>3.8.1</version>       <scope>test</scope>     </dependency>     <dependency>   <groupid>com.microsoft.azure</groupid>   <artifactid>azure-storage</artifactid>   <version>4.0.0</version>    <scope>system</scope>     <systempath>${basedir}/lib/azure-storage-4.0.0.jar</systempath> </dependency>  <dependency>   <groupid>com.microsoft.azure</groupid>   <artifactid>azure-core</artifactid>   <version>0.9.4</version>    <scope>system</scope>    <systempath>${basedir}/lib/azure-core-0.9.0.jar</systempath> </dependency>      <dependency>   <groupid>com.microsoft.azure</groupid>   <artifactid>azure-media</artifactid>   <version>0.9.4</version>   <scope>system</scope>   <systempath>${basedir}/lib/azure-media-0.9.0.jar</systempath> </dependency>   </dependencies> </project> 

my assumption vs code not able find jdb.exe , trying find should configured.

problem related missing %path% pointing c:\program files\java\jdk1.8.0_102\bin. once system variable %path% has been modified include c:\program files\java\jdk1.8.0_102\bin vs code launched java debugger.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -