kotlin-debug-adapter
kotlin-debug-adapter copied to clipboard
Configuring for multi-project builds
I have a multi-project build with a top-level build.gradle
and then subprojects, including Kotlin subprojects, that do not have individual build.gradle
files.
Is there a way to configure launch.json
in Visual Studio Code to cope with that project structure in order to debug one or more of the subprojects?
Multi-module projects are not (yet) supported.
Have you tried to debug one project or subproject only change only the project root. In the main project make it the whole workspace and in the subproject set the path to it. For example, if the subproject is listed under "Hello" folder, set the project root to "${workspace}/Hello} and so on but with copying the "build.gradle" inside the subproject folder.
Projects with multiple subprojects are now experimentally supported by specifying ${workspaceFolder}/subproject
as a projectRoot
. The debugger will work, but it can't currently display source files from other (dependent) subprojects: