Hi Olivier,

Thanks, that’s good news to hear. I tried a while back in enabling --gdbjit in 
Node.js <https://github.com/nodejs/node/pull/61010> and I think the use cases 
for the plugins proposed are slightly different from --gdbjit: as far as I know 
GDB JIT integration has runtime overhead from the additional wiring during code 
compilation and so needs to be enabled when the application launches. 
debug_helper on the other hand would also be useful for post-mortem debugging 
<https://docs.google.com/document/d/1evHnb1uLlSbvHAAsmOXyc25x3uh1DjgNa8u1RHvwVhk/edit?tab=t.0>
 - i.e. debugging crash dumps collected when a release build crashes in a 
remote environment under usual runtime configuration in V8. The crash dump is 
essentially just a copy of live memory at the point of the crash and can be 
configured e.g. at the system level, so it has no runtime overhead and helps 
navigating sporadic crashes difficult to reproduce locally. Operating on a more 
complete dump of the process can also make it easier to e.g. investigate memory 
leaks or corruptions.

Although I think some of the internal machinery maybe shared to make 
debuggability (no matter live or post-mortem) in general easier to maintain :)

> On 21 Apr 2026, at 13:01, Olivier Flückiger <[email protected]> wrote:
> 
> Hi Joyee,
> 
> Incidentally I have just started working on fixing various issues and 
> extending --gdbjit. I think a large part of what you are describing is 
> already available behind this flag. As of yesterday it should work again with 
> optimized code and it even shows maglev IR (see --maglev-gdbjit). I am also 
> working on fixing the startup penalty it has, so we might be able to enable 
> it by default on debug builds.
> 
> *oli
> 
> 
> On Mon, Apr 20, 2026 at 3:41 PM Joyee Cheung <[email protected] 
> <mailto:[email protected]>> wrote:
>> Hi folks,
>> 
>> I have written a design doc on implementing GDB and LLDB plugins using the 
>> debug_helper, so that we can surface more JavaScript states when debugging 
>> system core dumps. This would complement the existing Windbg integration 
>> that also builds on top of debug_helper.
>> 
>> The initial implementation focuses on annotating JS frames in back traces 
>> with JS source information.
>> 
>> The design doc is at 
>> https://docs.google.com/document/d/1KkFk_rLbcV7XZ11cnnOolMRixkBqPHLJa7ZiCcjY_t0/edit
>>  and the prototype patch is at 
>> https://chromium-review.googlesource.com/c/v8/v8/+/7776212 
>> 
>> Feedback welcomed!
>> 
>> Regards,
>> Joyee
>> 
>> -- 
>> -- 
>> v8-dev mailing list
>> [email protected] <mailto:[email protected]>
>> http://groups.google.com/group/v8-dev
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "v8-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/v8-dev/ECAA6D72-F8BA-446E-9B10-88D5C0E62207%40igalia.com
>>  
>> <https://groups.google.com/d/msgid/v8-dev/ECAA6D72-F8BA-446E-9B10-88D5C0E62207%40igalia.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> -- 
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion visit 
> https://groups.google.com/d/msgid/v8-dev/CAPfE2j2HYT3PeO8OQ1oe9FGZOSR1NmNaTPFHzZgFi8vL70VKMA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/v8-dev/CAPfE2j2HYT3PeO8OQ1oe9FGZOSR1NmNaTPFHzZgFi8vL70VKMA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/DDFFDFAD-3A1C-49F0-8B96-E9F4AA26F2D1%40igalia.com.

Reply via email to