GithubHelp home page GithubHelp logo

marcsosduma / cobgdb Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 20.8 MB

Command-Line Debugger for GnuCOBOL on Linux and Windows

License: GNU General Public License v3.0

C 89.38% Makefile 0.63% COBOL 9.98%
command-line debugger linux windows gnucobol cobol

cobgdb's People

Contributors

gitmensch avatar marcsosduma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gmh5225 gitmensch

cobgdb's Issues

Typo error

When you type the Q (Quit) command the debugger send a message where is COBGBD instead of COBGDB.
See image:

image

FR: allow attaching to PIDs / remote

Depends on #1.

Once this is implemented it would be easy to allow cobgdb 21321 (attach to pid) or cobgdb server:port (attach to gdbserver using extended-remote).

FR: J -> Jump to line

We already have "run to selected line" (C), which is often useful.

Especially if you recognized that there was an issue with a condition and want to jump into (or out of) its statenents, or when you want to do a missed CALL again (for example because you've used "N"ext instead of "S"tep an additional "J"ump to is very useful.

cobgdb first look and second run error

I managed to start a debug session.
the command I used is the following
cobgdb customer.cob -x -Tlista.txt
The system compiles the program and immediately starts the debugging session. See first attached screenshot.
Unfortunately the Step command doesn't work (it does nothing).
Only the V command which displays a list of some variables works (partially).

Starting from the second execution of the command:
cobgdb customer.cob -x -Tlista.txt
I get the error of the second screenshot.
At this point I can no longer run the debugger.


COBGDB10
cobgdbERR10

FR: show variables in HEX

If data is invalid, then this may automatically be used (like x'202A20' in a COMP-3 field), but in any case it would be nice to be able to view (and after #5 is available also edit) in hex.

FR: conditional breakpoints

Ideally it would be able to set a condition to a breakpoint after it is reached (you set it at the start, then find that you only want to stop if a variable is > 42).

Windows Binaries available ?

Hi,
just to ask if it is possible for the .exe executable or the executables for windows to be added to this site.
I would like to start using and testing the debugger but avoiding all the work of installing the various components necessary before being able to compile the source code.

FR new command: E - edit variable

The easiest implementation just works for simple PIC 9 / PIC X, and/or has no validation of the data. A more complex one could do the validation and adjusting as needed (the "upstream" extension should have code in for that).

The E command would be also useful to be handled within the current Variable displays (just popping up as another window).

split the "view" (which runs) from the "compile"

if you find the need to do some pre-processing directly then have a cobcgdb wrapper (that would do cobc -g with every switch you find necessary - but a user may execute the same commands manually) and a cobgdb which is only the frontend

This has the benefit of allowing a connection to a running process/server later - and most important: people can compile now and debug 6 days later (or a real world application consisting of 500+ COBOL modules) without any problem. This is the biggest regression in gnucobol-debug which effectively prevents its use for those type of applications. Please don't copy that regression here.

FR (low priority): mouse support, e.g. for displaying variables on "hover"

As noted: really low-priority, but a nice to have:

  • hover over variable with the mouse -> show its value after (a possibly configurable) timeout, maybe 1.5 seconds
  • support for right click:
    • set/delete breakpoint at selected line (like B)
    • run to selected line (like current C)
    • jump to line (feature missing in general #8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.