question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use this extension with coredumps [missing in README]?

See original GitHub issue

So far I’ve only started the application, then used the debugging console or autorun to load a core file. But there is likely a better way, isn’t there?

Thinking about that it would be likely useful to have an extra launch type for that which has no pause/run/step active (if this is actually possible with the dap).

Additional: On systems with installed systemd-coredump all created coredumps are taken into its db and the last one can always be inspected with gdb using coredumpclt debug (you can filter for example with pid or executable name, too). It would be really nice to start this instead of GDB - but I have no clue if this would work, I guess via its --debuger (default is gdb - we’d just set the gdbpath there) and via --debugger-arguments= (to pass the collected startup commands). That would be useful both locally and for ssh-remote. Maybe a new type “core” with an optional boolean argument coredumpclt?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
browntscommented, Nov 9, 2022

I see, that’s microsoft/vscode#6209, one needs an explicit problem matcher, that’s… special. It still doesn’t work for me using this exact same definition, the launch does not start. It does work when manually starting that process, then creating the launch (in this case it is ideal to drop that “once”, of course.

Yeah, getting the matcher correct is a pain, but I remember running across that in the past and had this in my back pocket from some previous launcher I had cobbled together.

Not sure why it’s not working for you. With that setup, at least on Linux, I’m not having any problem launching gdbserver.

Note: I don’t see any interaction to show local variables - should there be some? Did I somewhere possibly dropped that with a setting? [note: hovering over variables leads to the data-evaluate-expression call and the returning output is also resolved nicely in the gui - the variable pane “Local” is just empty.

Not quite sure exactly what you’re seeing, but I do see many local variables shown. I do see that some seem to have problems (which should be investigated), but others are displayed fine. Here are a couple snapshots from my hello_world example. I just ran this and when it’s in the sleep loop, I ran “gcore” on it to generate a core file. Then loaded it as previously described.

coredump_debugger

coredump_debugger_2

0reactions
GitMenschcommented, Nov 9, 2022

I’m using the last release, as most people 😃 0.26.0 - that fix is not included there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core dump file is not generated - Stack Overflow
When Arch Linux switched to systemd, I ran into that problem. Now I am using echo "core" > /proc/sys/kernel/core_pattern to get my core...
Read more >
ubi0:rwfs: Missing core file in BMC Dump · Issue #2240 - GitHub
BMC Dump manager watch core file created by systemd-coredump for core base BMV dump creation . In the system which have ubi0:rwfs based ......
Read more >
Core dump - ArchWiki
A core dump is a file containing a process's address space ... such as systemd-coredump using kernel.core_pattern , Linux ignores the ulimit ...
Read more >
Commands for managing core dumps - Product documentation
Commands for managing core dumps ; Display the configuration settings for core dumps. system node coredump config show ; Display basic information ...
Read more >
How to collect core dump file of a crashing program that is ...
However, based on this Fedora article maybe we should not be using abrt-ccpp at all. The Red Hat documentation seems lacking for RHEL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found