Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
jfl
- Posts: 226
- Joined: 26 Oct 2012 06:40
- Location: Saint Hilaire du Touvet, France
-
Contact:
#1
Post
by jfl » 17 Dec 2015 04:54
Hi,
to resolve some limitations of my
batch debugging library, I'm afraid I'll need a batch parser written in batch.
Use cases:
- Output a set command, that can copied and run to recreate any variable value.
Currently my :EchoVars routine works well for "normal" values, but does not correctly escape values with problematic characters like: % ! " ^ LF - Write a %CALL% macro that enquotes the problematic string /? before doing the actual call.
(This string breaks the call, unless it's enquoted an odd number of times!)
Has this been done already?
Jean-François
-
jeb
- Expert
- Posts: 1055
- Joined: 30 Aug 2007 08:05
- Location: Germany, Bochum
#2
Post
by jeb » 17 Dec 2015 08:22
Hi jfl,
sorry but I don't know of any batch debugger.
And my own batch debugger is written in javascript,
but I don't understand why it should be written in batch itself.
Currently my simulator/debugger is at a very early stage, so I will finish it first before I publish it.
jeb
-
jfl
- Posts: 226
- Joined: 26 Oct 2012 06:40
- Location: Saint Hilaire du Touvet, France
-
Contact:
#3
Post
by jfl » 17 Dec 2015 11:47
I'd like this parser to be in batch because the rest of my
batch debugging library (Making batch scripts self-debugging) is in batch also, and I'd like to keep it that way, without any external dependencies.
And a parser like this may have been done for other reasons than debugging. The %CALL% macro use case I mentioned is nothing more than a workaround for a call bug.