Debug nextflow in intellij

296 views
Skip to first unread message

Elisabeth Ortega

unread,
Jan 25, 2022, 11:30:55 AM1/25/22
to next...@googlegroups.com
Dear all,

I'm trying to play a little bit with the nextflow code to customize some stuff but I cannot manage to setup the debugger in intellij.

That's my config:
image.png
But after executing this it says:
Task '.launch.sh' not found in root project 'nextflow-prj'.
(I'd tested with and without a dot before launch.sh).

For sure I'm missing something in the configuration or I'm pointing to the wrong file.

Can anyone give me 5 cents on that?

Thanks,
Elisabeth
-----------------------------------------------------------
Elisabeth Ortega Carrasco • Computational Scientist
--------------------------------------------------------------

Paolo Di Tommaso

unread,
Jan 26, 2022, 3:50:30 AM1/26/22
to nextflow
Interactive debugging is not currently supported for Nextflow scripts 

--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/CAEbJWepF8v6unHHBv2VrWF2EYmuGaVVW8BiMz4Fd%3Dek_H15_3g%40mail.gmail.com.

Elisabeth Ortega

unread,
Jan 26, 2022, 4:52:14 AM1/26/22
to Nextflow
Sorry, I didn't explained well myself. I'm not trying to debug a nextflow script, I'll debug nextflow code.
I'm building a new executor created by myself with new taskconfig properties and I'm getting a javaNullPointerExeception that I don't understand. This is why I want to use the debug, to try to find the origin and do a better follow up of variables rather than printing them in the log.


El dia dimecres, 26 de gener de 2022 a les 9:50:30 UTC+1, paolo.d...@gmail.com va escriure:

Paolo Di Tommaso

unread,
Jan 26, 2022, 5:25:18 AM1/26/22
to nextflow
I see, than it easy, after compiling the code run 

````
./launch.sh -remote-debug run some-script.nf 
```

And connect with intellij remote debugger on port 8010 

Elisabeth Ortega

unread,
Jan 26, 2022, 5:33:36 AM1/26/22
to next...@googlegroups.com
Fantastic! now I can debug!

Thank you so much, Paolo!

Missatge de Paolo Di Tommaso <paolo.d...@gmail.com> del dia dc., 26 de gen. 2022 a les 11:25:
You received this message because you are subscribed to a topic in the Google Groups "Nextflow" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nextflow/2UhlqaaSw1k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/CADgKzdzSEKb0MGG7sKag1WKoO8KNPEFMJVe4z8m%3DWjOAvyfy4w%40mail.gmail.com.

Paolo Di Tommaso

unread,
Jan 26, 2022, 6:14:35 AM1/26/22
to nextflow
Nice to read that. Consider using the discussion forum on the GitHub project for further questions.

Happy nextflow hacking! 

Reply all
Reply to author
Forward
0 new messages