#Debugger for Batch - Project Making Peak

1 messages · Page 1 of 1 (latest)

reef sparrow
#

Debugger for Batch - Project Making Peak

It helps in finding out the Lines of code that are causing errors in the script, thus saving a lot of time. BatDbug is one of its unique solution for demonstrating the power of simplicity to find out solutions for the complex problems, such as debugging a batch script.
BatDbug is not a complete solution in itself as it is still in its development phase and this is the initial version of the concept. But, with more time and with the help of official Batch-Man team - this is going to be a full fledged solution for Batch Scripts Debugging.

video: https://www.youtube.com/watch?v=hrjKYNev6H0

It helps in finding out the Lines of code that are causing errors in the script, thus saving a lot of time. BatDbug is one of its unique solution for demonstrating the power of simplicity to find out solutions for the complex problems, such as debugging a batch script.
BatDbug is not a complete solution in itself as it is still in its developmen...

▶ Play video
golden fulcrum
#

Wow, looks really interesting

#

How does it work? Is it creating a new batch file with the code for debugging output appended after each line?

somber echo
#

yes

somber echo
#

It could be improved maybe by doing a variable dump and printing the exact line where the issue happened

golden fulcrum
#

nice :) a batch debugger is something I wanted to do for a long time :D

#

will have a look at the source code :)

somber echo
#

I'm going to do some changes to implement this

golden fulcrum
#

by putting &set in there? xD

reef sparrow
#

Hey fellas!!

@golden fulcrum @velvet mist this one is very simple and quick implementation of, how a complex problem can be solved with a kind of simple soultion.

#

We can improve on it, as batch runs from top to bottom, so we can take advantage of that fact and check for errolevel variable after aexecution of each line... and whereever errorlevel is not 0, we can show it on screen for the programmer to process, for that line to check the problem.

golden fulcrum
#

We could also make use of the fact that a batch file can be changed during runtime. So this would allow you to set breakpoints or change the code during execution without writing our own batch interpreter or having huge overhead.

#

I hope I have some time to look at it and maybe help improve it soon. It's something I always wanted to implement (and especially use when programming with batch).

#

If it's good enough and is paired with a study, it could even be material for a paper... :D