inspector: use script name for target title · nodejs/node@609a265 · GitHub
Skip to content

Commit 609a265

Browse files
Eugene Ostroukhovofrobots
authored andcommitted
inspector: use script name for target title
Changes inspector integration to use Node.js script file name as target title (reported in JSON and shown in developer tools UIs). It will also report file:// URL for the script as some tools seem to use that field to open the script in the editor. PR-URL: #8243 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
1 parent 9826a79 commit 609a265

3 files changed

Lines changed: 101 additions & 45 deletions

File tree

src/inspector_agent.cc

Lines changed: 87 additions & 37 deletions

src/inspector_agent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Agent {
2929
~Agent();
3030

3131
// Start the inspector agent thread
32-
bool Start(v8::Platform* platform, int port, bool wait);
32+
bool Start(v8::Platform* platform, const char* path, int port, bool wait);
3333
// Stop the inspector agent
3434
void Stop();
3535

src/node.cc

Lines changed: 13 additions & 7 deletions

0 commit comments

Comments
 (0)