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.

Missing beforeExecuting event and line shift property during eval in debugger api

See original GitHub issue

Hello,

I try to use the debugger protocol to get the inline sourcemap from an dynamically invoked script eval . I tried scriptParsed event, but it seems to not wait for the end of the callback to start executing. During eval, we need to get the inline sourcemap to set breakpoints according to the authored source file before let chrome execute the script. The other problem I found is that chrome adds (function(){ at the beginning of the script which shifts by 1,2 or more lines depending on the parameters length (and maybe column shift too). Without such a property, it is difficult to map from authored source, generated source and chrome generated source with line shift.

Could you help to solve those problems ?

Thank you in advance for your help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TimvdLippecommented, Apr 9, 2020

This repository is related to Chrome DevTools Protocol, but does not track issues regarding its definition or implementation. If you want to file an issue for the Chrome DevTools Protocol, please open an issue on https://crbug.com under component: Platform>DevTools>Platform. Thanks in advance!

0reactions
Alphapagecommented, Dec 20, 2017

Any more info ? It seems I’m the only one to want such a feature to be implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New In DevTools (Chrome 105)
Open a Wasm file in the Sources panel. Right-click in the editor and select Add DWARF debugging info… to attach debugging information on...
Read more >
VS Code API | Visual Studio Code Extension API
VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This page lists all...
Read more >
"Cannot evaluate expression because the code of the current ...
My solution configuration has (Debug) selected. I resolved this by unchecking the Optimize Code property under project properties.
Read more >
Extension API for Inline Values · Issue #105690 - GitHub
A prototype based on this approach showed two problem areas: sending multiple "evaluate" requests for every source line to the debug adapter can ......
Read more >
Code Composer Studio Development Tools v3.3
5.5.2 Scripting Utility for Debug . ... 6.1.5 Code Coverage and Multi-Event Profiler Tool. ... Whereas source stepping steps through the lines of...
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