jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.89k stars 873 forks source link

How to debug tests from VS Code or otherwise? #1029

Closed siddhsql closed 1 year ago

siddhsql commented 1 year ago

Can anyone show me how to debug tests from VS Code? I am using release-3.0 branch. I have these VS Code extensions installed:

fwcd.kotlin-0.2.31
mathiasfrohlich.kotlin-1.7.1
vscjava.vscode-java-debug-0.54.0
vscjava.vscode-java-dependency-0.23.1
vscjava.vscode-java-pack-0.25.13
vscjava.vscode-java-pack-0.25.14
vscjava.vscode-java-test-0.39.1
vscjava.vscode-maven-0.42.0

but I do not see VS Code recognizing the tests. E.g., I don't see the green "play" button next to the test.

image

The test explorer shows me this:

image

If its not possible to run tests from VS Code, how can I run and debug them from command-line? I want to be able to debug - set breakpoints etc. I am fine doing this from command-line but need the steps.

https://www.reddit.com/r/vscode/comments/p19lk1/any_way_to_show_and_run_kotlin_tests_from_a_test/