You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2024/12/20 14:29:48 UTC

[I] Documentation needed on how to debug packageDaffodilBin [daffodil-sbt]

stevedlawrence opened a new issue, #76:
URL: https://github.com/apache/daffodil-sbt/issues/76

   The packageDaffodilBin task forks a process with a custom classpath, which makes it difficult to debug.
   
   We need to determine a way to make this easier and document it somewhere. This issue is more about debugging Daffodil than the plugin, so the documentation may want to live in the Daffodil wiki, but changes to the plugin might be useful to aid in getting things set up.
   
   One example, currently it's possible to get the classpath used "sbt test" by running a command like this:
   
   ```
   export DAFFODIL_CLASSPATH=$(sbt -batch -error "export fullClasspath")
   ```
   
   This classpath is the same as what is used by daffodilPackageBin if daffodilPackageBinVersions is the same as daffodilVersion.
   
   You can then run the Daffodil CLI with that classpath (e.g. daffodil save-parser -s ...) and get essentially the same results as packageDaffodilBin. From there it is just a matter of debugging the CLI.
   
   Another option might be a way to output the arguments that packageDaffodilBin uses to fork, and then those arguments can copied and run in a debugger. That might avoids issues with setting up the classpath.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Documentation needed on how to debug packageDaffodilBin [daffodil-sbt]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on issue #76:
URL: https://github.com/apache/daffodil-sbt/issues/76#issuecomment-2607766226

   Incorrectly closes. #80 added support for `sbt "export packageDaffodilBin"`, but we need documentation somewhere that describes how to take the command that outputs and run it under a debugger.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Documentation needed on how to debug packageDaffodilBin [daffodil-sbt]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence closed issue #76: Documentation needed on how to debug packageDaffodilBin 
URL: https://github.com/apache/daffodil-sbt/issues/76


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org