kotlin-debug-adapter icon indicating copy to clipboard operation
kotlin-debug-adapter copied to clipboard

Configuring for multi-project builds

Open davidpcaldwell opened this issue 5 years ago • 3 comments

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?

davidpcaldwell avatar Mar 14 '19 13:03 davidpcaldwell

Multi-module projects are not (yet) supported.

fwcd avatar Mar 18 '19 12:03 fwcd

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.

minkir014 avatar Mar 20 '19 16:03 minkir014

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:

grafik

fwcd avatar Aug 16 '19 22:08 fwcd