question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to debug Build.kt script

See original GitHub issue

Actually ability to debug Build.kt file (not only Kobalt internals like Manifest.attributes) will be a great feature. User can have some fun complexMethod inside Build.kt and debug it. The problem why it is not working at the moment is the way like Kobalt compile Build.kt file. It saves to temporary dir with some random kobalt-XXXXX.kt name and compile it and pack inside buildScript.jar. The result classes will be the following:

photo_2016-06-06_15-57-41

But the original source file still Build.kt and debug doesn’t catch it.

It should use exactly Build.kt source file to make debug possible. Kobalt should compile and pack into buildScript.jar the actual Build.kt file, so the resulting jar will be the following:

photo_2016-06-06_16-08-29

@cbeust Any thoughts how to avoid compile and packaging temporary sources?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cbeustcommented, Jun 6, 2016

Ah I see.

I think there was a reason why I decided to copy Build.kt in a temporary directory and compile that one instead of the original one but I can’t remember why. Maybe some locking issue.

I’ll make the change you suggested, we’ll see how it goes.

0reactions
dmitry-zhuravlevcommented, Jun 6, 2016

It is really cool to debug almost all code in Build.kt. It’s killer feature 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run/Debug Configuration: Kotlin Script - IntelliJ IDEA - JetBrains
Run/Debug Configuration: Kotlin Script The Kotlin script run/debug configuration enables you running or debugging Kotlin scripts.
Read more >
KT-23526 - IntelliJ debugger ignores breakpoints in Kotlin ...
KT -23526 The debugger doesn't ignore breakpoints in class and object members so a workaround is to declare an object in the script...
Read more >
Build and Debug - Sparx Systems
Build and Debug. 4. Analyzer Scripts. 6. Managing Analyzer Scripts. 8. Analyzer Script Editor. 11. Build Scripts. 14. Cleanup Script. 16. Test Scripts....
Read more >
Get started with Kotlin custom scripting – tutorial
Open host.kt and navigate to the main function. It has a Run gutter icon on the left. · Right-click the gutter icon and...
Read more >
Troubleshooting builds - Gradle User Manual
You'll need to ensure that a Java Development Kit version 8 or higher is properly installed, the JAVA_HOME ... Interactive debugging of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found