Hello World
- Create a new folder
helloworld, create a file named App.java in this folder and filling the following codes:
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
- Set BP on println
- Press F5, verify for launch.json generated with right
mainClass
- Press F5, verify for BP to be hit, verify variable args shows like
String[0] (id=%d)
- Add watch
args.toString() + " test", verify the result like [Ljava.lang.String;@726f3b58 test
- Input
args.toString() + " test" in debug console, verify the same result in debug console and it is expandable.
- Verify stack with thread list and on paused thread and one stack:
App.main(String[]) (App.java:5)
- Press F10, verify
Hello World! in debug console.
- Press F5, verify program terminates.
Hello World
helloworld, create a file namedApp.javain this folder and filling the following codes:public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }mainClassString[0] (id=%d)args.toString() + " test", verify the result like[Ljava.lang.String;@726f3b58 testargs.toString() + " test"in debug console, verify the same result in debug console and it is expandable.App.main(String[]) (App.java:5)Hello World!in debug console.