Re: The future of the daffodil DFDL schema debugger?

2021-05-26 Thread Beckerle, Mike
To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? > Some thoughts re: data format debugger > I suggest we enumerate Mike, are you saying there is some ground work to lay for this in Daffodil itself, or are these things which the debugger needs to

Re: The future of the daffodil DFDL schema debugger?

2021-05-26 Thread John Wass
ree in memory. As parse-events are produced, no-longer necessary parts of > the infoset are pruned away. Similarly, when unparsing, once a part of the > infoset has been unparsed, that part of the infoset tree is pruned away if > no longer needed. > > > _

Re: The future of the daffodil DFDL schema debugger?

2021-05-24 Thread Adam Rosien
ing, once a part of the > infoset has been unparsed, that part of the infoset tree is pruned away if > no longer needed. > > > > From: Steve Lawrence > Sent: Thursday, April 22, 2021 9:32 AM > To: dev@daffodil.apache.org > Subject: Re: The future o

Re: The future of the daffodil DFDL schema debugger?

2021-05-24 Thread Beckerle, Mike
nce Sent: Thursday, April 22, 2021 9:32 AM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? Some thoughts related to showing the infoset as if it were a variable as this is prototyped 1) How do DAP/IDE's represent very large hierarchical data? Info

Re: The future of the daffodil DFDL schema debugger?

2021-05-04 Thread Adam Rosien
> It looks like some of the code from java-debug can be reused without involving JDI. The java-debug project could be viewed as an implementation of the DAP communication protocol, coupled with JDI to provide request/response values to DAP. For example, the `ProtocolServer` [3] hard-codes the JDI,

Re: The future of the daffodil DFDL schema debugger?

2021-04-26 Thread Adam Rosien
I'm currently seeing what it takes to get a minimal VS Code extension talking DAP over stdin/stdout to an external Scala process. On Fri, Apr 23, 2021 at 11:01 AM Adam Rosien wrote: > I've looked at scala-debug-adapter a bit now, and it doesn't do very much: > there's some socket stuff and state

Re: The future of the daffodil DFDL schema debugger?

2021-04-23 Thread Adam Rosien
I've looked at scala-debug-adapter a bit now, and it doesn't do very much: there's some socket stuff and state management, but otherwise it delegates to the underflying java-debug library which manages the DAP protocol [1]. *That* library does assume use of JDI and supplies JVM-level stuff to DAP (

Re: The future of the daffodil DFDL schema debugger?

2021-04-22 Thread John Wass
> dig a bit to see if the DAP-only hooks can be reused without JDI coming along for the ride Cool, that would be good to dig at. Big win if we can reuse it.

Re: The future of the daffodil DFDL schema debugger?

2021-04-22 Thread Adam Rosien
, and to add/remove >> >>>>> breakpoints. And an information view for things like variables, >> >> in-scope >> >>>>> delimiters, PoU's, etc. >> >>>>> >> >>>>> The only reason I mention a debug pr

Re: The future of the daffodil DFDL schema debugger?

2021-04-22 Thread Adam Rosien
; >>> parse/unparse that need to be points where users can pause, and > data > > > >>> structures available to display. > > > >>> > > > > >>> > E.g., it is 100% a display issue that the infoset (shown as XML) > is > > &g

Re: The future of the daffodil DFDL schema debugger?

2021-04-22 Thread Adam Rosien
k. > >>>>> > >>>>> > >>>>> On 1/6/21 12:44 PM, Beckerle, Mike wrote: > >>>>>> I don't think of it as a daffodil debug protocol, but just a > >>>>> separation of concerns between display of information and the > >> behaviors of > >>&

Re: The future of the daffodil DFDL schema debugger?

2021-04-22 Thread Steve Lawrence
, how to display the infoset with sensible limits >>>>> on sizing, is fairly easy to come up with some design for, that will at >>>>> least be (1) always fairly small (2) much more useful in more cases. It >>>>> won't be perfect but can be much better than what we do n

Re: The future of the daffodil DFDL schema debugger?

2021-04-21 Thread John Wass
> >>> > > > >>> > One sensible display "mode" should be that displaying the context > > >>> surrounding the current element (when parsing or unparsing) displays > at > > >>> most N-lines. (N/2 before, N/2 after) with a maxim

Re: The future of the daffodil DFDL schema debugger?

2021-04-21 Thread Adam Rosien
> value might be some big thing which needs to be > elided > >>> ... > >>> > ... > >>> >??? > >>> > > >>> > ??? > >>> > > >>> > The is just an idea to reduce XML matching end-ta

Re: The future of the daffodil DFDL schema debugger?

2021-04-20 Thread Beckerle, Mike
apache.org Subject: Re: The future of the daffodil DFDL schema debugger? Hi everybody, I've recently started working on Daffodil with some other folks and will be helping where I can with the debugger. I've been writing Scala since ~2011 and recently wrote a book about Cats Effect, which

Re: The future of the daffodil DFDL schema debugger?

2021-04-20 Thread John Wass
> ... >>>> > >>>> >... >>>> >89ab782 ... >>>> >some text is here and some more text >>>> > value might be some big thing which needs to be >>>> elided ... >>>> > ... >>>> >??? >>>> >

Re: The future of the daffodil DFDL schema debugger?

2021-04-20 Thread John Wass
ot starting from the >>> absolute root. >>> > >>> > The ... within simple content means that content is elided to fit on >>> one line. Always follows some text characters to differentiate from the >>> child-element context. >>> > >>> > The ??? means zer

Re: The future of the daffodil DFDL schema debugger?

2021-04-19 Thread Adam Rosien
__ > From: John Wass > Sent: Monday, April 12, 2021 9:58 AM > To: dev@daffodil.apache.org > Subject: Re: The future of the daffodil DFDL schema debugger? > > > the code is here https://github.com/jw3/example-daffodil-debug > > There is now a complete console

Re: The future of the daffodil DFDL schema debugger?

2021-04-16 Thread Beckerle, Mike
This is actually very cool using ZIO for this. I have to learn more about ZIO. From: John Wass Sent: Monday, April 12, 2021 9:58 AM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? > the code is here https://github.

Re: The future of the daffodil DFDL schema debugger?

2021-04-12 Thread John Wass
arly for a trace output being dumped to a text >> file. >> > >> > I made the above example an unparser kind of example by showing a >> following sibling that exists that is after the current node. >> > >> > I think the key concept is that any sibli

Re: The future of the daffodil DFDL schema debugger?

2021-04-08 Thread John Wass
modes would be useful. E.g., a text marker like ">>>" as in: >> > >> >>>> value >> > >> > might be better, particularly for a trace output being dumped to a text >> file. >> > >> > I made the above example a

Re: The future of the daffodil DFDL schema debugger?

2021-04-08 Thread John Wass
layed in a way > that fits on one line. > > E.g., even if the element name was really long, I'd suggest: > > > > abcd ... > > > > Where the element name itself gets elided because it is too long. > > > > A thought. Note that the above presentation is shown as quasi-XML, but &g

Re: The future of the daffodil DFDL schema debugger?

2021-01-11 Thread Steve Lawrence
c model (akin to the DSOM >> object model) of the schema. >> This is here just to point out that it's really out of scope. There are >> many questions about the schema (e.g., "can I add this property to this >> element?") that are not? required for the debugger

Re: The future of the daffodil DFDL schema debugger?

2021-01-11 Thread Beckerle, Mike
er unspecified aspects of the situation. From: John Wass Sent: Friday, January 8, 2021 4:45 PM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? What other features could find a nice home in an IDE integration? Having sin

Re: The future of the daffodil DFDL schema debugger?

2021-01-08 Thread John Wass
great, but that's really entirely different than our goals for debugging > that we're trying to discuss here. > > > ____________ > From: Sloane, Brandon > Sent: Thursday, January 7, 2021 1:25 PM > To: dev@daffodil.apache.org > Subject: Re: The future of the daffodi

Re: The future of the daffodil DFDL schema debugger?

2021-01-08 Thread Beckerle, Mike
y entirely different than our goals for debugging that we're trying to discuss here. From: Sloane, Brandon Sent: Thursday, January 7, 2021 1:25 PM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? We could also crea

Re: The future of the daffodil DFDL schema debugger?

2021-01-07 Thread Sloane, Brandon
-site analysis in cases where it is not practical to attach a debugger while Daffodil is running. From: Sloane, Brandon Sent: Thursday, January 7, 2021 1:21 PM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? I've bee

Re: The future of the daffodil DFDL schema debugger?

2021-01-07 Thread Sloane, Brandon
racking) * The memory requirements when used on large infosets From: Larry Barber Sent: Thursday, January 7, 2021 1:08 PM To: dev@daffodil.apache.org Subject: RE: The future of the daffodil DFDL schema debugger? When I was doing strange and unusual things with DFD

RE: The future of the daffodil DFDL schema debugger?

2021-01-07 Thread Larry Barber
Subject: Re: The future of the daffodil DFDL schema debugger? Yep, something like that seems very reasonable for dealing with large infosets. But it still feels like we still run into usability issues. For example, what if a user wants to see more? We need some configuration options to increase what

Re: The future of the daffodil DFDL schema debugger?

2021-01-06 Thread Sloane, Brandon
ach other. From: Steve Lawrence Sent: Wednesday, January 6, 2021 1:42 PM To: dev@daffodil.apache.org Subject: Re: The future of the daffodil DFDL schema debugger? Yep, something like that seems very reasonable for dealing with large infosets. But it still feels like we

Re: The future of the daffodil DFDL schema debugger?

2021-01-06 Thread Steve Lawrence
and some more text" >currentNode = "value might be some big thing which needs to be elided ..." >followingSibling1 = { ... } >??? > } > > That's enough for 1 email thread on this debug topic. > > > >

Re: The future of the daffodil DFDL schema debugger?

2021-01-06 Thread Beckerle, Mike
elided ..." followingSibling1 = { ... } ??? } That's enough for 1 email thread on this debug topic. ____ From: Steve Lawrence Sent: Tuesday, January 5, 2021 2:26 PM To: dev@daffodil.apache.org Subject: The future of the daffodil DFDL schema debugger? N