Open andxu opened 6 years ago
Open test project all-in-one
Set BP on the last statement of VariableTest#test
Open the Command Palette and select "AZDS: Prepare xxxx" then select "OpenJDK" or "Zulu" to generate required files
Change mainClass
to VariableTest
, press F5 to start debug and wait for BP to be hit
Verify :
i
should be 111
nullstr
should be null
str
should be full displayed with 1000 a
object
should be Object (id=^d)
and not expandabletest
should be VariableTest (id=^d)
and expandable with x (VariableTest): 100
, i:19099
and x (Foo): 0
a
is not expandableb
is displayed as Class (A) (id=^d)
and expand b->classLoader
, there should be no errors on logsintarray
should have 3 integers 1, 2, 3
strList
should have children size: 2
and expandable elementData
, expand elementData
, a long string string test aaaaaaa...
should be displayedmap
should have size: 1
and expandable table
with a HashMap$Node
child.t
should have one element hello
genericArray
should be displayed String[10][] (id=^d)
with first non-empty elementmulti
should be displayed String[5][][] (id=^d)
and two levels expandable tree nodes.d
should not be expandabledd
should be displayed as GenericsFoo (id=^d)
and should have one child x: Foo (id=^d)
with only one child x: 0
list
should have only one element of int[1] (id=^d)
at index 0
this
variable should be displayedSet value on test->x (VariableTest)
, input value 1
, verify this->x (VariableTest)
has also been changed to 1
all-in-one
RecursiveTest.java
, and set BP on line 8: return 1mainClass
to RecursiveTest
, press F5 to start debug and wait for BP to be hitall-in-one
BreakPointTest.java
and Set BP on each println
statementmainClass
to BreakPointTest
and Press F5 to start debug, verify the line System.out.println("middle");
is hitSystem.out.println("inner");
is hitSystem.out.println("anonymous");
is hitSystem.out.println(j);
is hit middle
inner
anonymous
99
all-in-one
NoSourceTest.java
, and set BP on line 4: System.out.println(i+10);
NoSourceTest
and press F5 to start debug, verify the BP is hitNoSourceTest.lambda$0(Integer) (NoSourceTest.java:4) ^d.accept(Object) (Unknown Source:-1) Foo.bar(int,int,Consumer) (Unknown Source:-1) NoSourceTest.main(String[]) (NoSourceTest.java:3)
Foo.bar(int,int,Consumer) (Unknown Source:-1)
, verify variables:
717356484 (id=395)
Foo (id=356)
all-in-one
TooManyVariables.java
, and set BP on System.out.println("variable perf test.")
VariablePerfTest
and press F5 to start debug, verify the BP is hithttps://github.com/spring-projects/spring-petclinic.git
WelcomeController.java
on line return "welcome";
and main
on PetClinicApplication.java
main
is hit.main
is hit again.2017-11-23 20:23:25.230 INFO 9448 --- [ restartedMain] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
http://localhost:xxxx
(random port in tasks.json), verify the welcome
method is hitspring-petclinic/target/classes/templates/welcome.html
is displayed on IE .all-in-one
Hello$orld#main
//TODO
multi-module-test
in command line, and run azds prep --public
azds up
in command line and verify the url provided is accessible with StringUtils.isBlank works!
HelloPrinter.java
line 5 is hit. (A known bug which will cause the BP hit two times.)spring-boot-test
in command line, and run azds prep --public
azds up
in command line and verify the url provided is accessible with Hello World
MyService.java
line 18 is hit. exec-multi-module-test
in vscodeexec-multi-module-test\exec-module2\pom.xml
, make sure using the plugin onejar-maven-plugin
mvn clean package
on root folder.MyPrinter.java#6
StringUtils.isBlank works!
appears on debug console.exec-multi-module-test
in vscodeexec-multi-module-test\exec-module2\pom.xml
, make sure using the plugin maven-jar-plugin
mvn clean package
on root folder.MyPrinter.java#6
StringUtils.isBlank works!
appears on debug console.exec-multi-module-test
in vscodeexec-multi-module-test\exec-module2\pom.xml
, make sure using the plugin exec-maven-plugin
mvn clean package
on root folder.MyPrinter.java#6
StringUtils.isBlank works!
appears on debug console.UserServiceImpl.java
line 18 is hit. Application.java
line 16 is hit. Modify the exec-multi-module-test\exec-module2\pom.xml
, and change to the following xml:
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>exec-multi-module-test</artifactId>
<groupId>com.ms.samples</groupId>
<version>1.0</version>
</parent>
<artifactId>exec-multi-module-module2</artifactId>
<dependencies>
<dependency>
<groupId>com.ms.samples</groupId>
<artifactId>exec-multi-module-module1</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
MyPrinter.java#5
dependency/*
HelloWorld
all-in-one
HelloWorld#main
String[0] (id=%d)
hello
in debug console.hello world
in debug console.a b
forargs
field, F5 again to verify the args in the HelloWorld.java has two string value ofa
andb
ps -ef | grep Xms
to verify the-Xms128m -Xmx512m
is included in the program args.