about build v8 with inspector

10 views
Skip to first unread message

김준호

unread,
Jul 24, 2025, 6:02:07 AMJul 24
to v8-users

My C++/MFC application embeds the V8 engine, and to debug additional JavaScript executed within it, I plan to connect DevTools via an embedded web server.

In previous versions (9.x), there was no Inspector Domain, so I am trying to upgrade to the latest version.
It seems that the v8_enable_inspector args.gn option, which used to exist, has been removed because it doesn't appear in gn gen options, and the built v8.dll shows a link error at v8_inspector::V8Inspector::create(), indicating that the inspector might not be included.

Is there an option in V8 version 14 to include the inspector, or a way to build v8_inspector separately?

ps. link v8.dll.lib, v8_libbase.dll.lib, v8_libplatform.dll.lib

LNK1120 : v8_inspector::V8Inspector::create( ...)

thanks.

Ben Noordhuis

unread,
Jul 24, 2025, 3:11:59 PMJul 24
to v8-u...@googlegroups.com
How exactly are you building V8? The inspector is always included
nowadays - I'm not aware of an option to disable it - and it's part of
v8.dll / libv8.a.

That v8_enable_inspector option you mention was removed in 2017 (!),
in V8 5.x-something.

김준호

unread,
Jul 24, 2025, 9:45:56 PMJul 24
to v8-u...@googlegroups.com
Yes, that's correct. The version is 14, but I was mistaken. The link error with the inspector-related functions led me to think otherwise. However, I'm having trouble linking it to my C++/MFC application because of the std::_Cr:: namespace issue.

2025년 7월 25일 (금) 오전 4:11, Ben Noordhuis <in...@bnoordhuis.nl>님이 작성:
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/v8-users/CAHQurc-cstD3%3DG-Qszr3ixZ5vNTZEPPQrU74cVeacOCgV_JYuw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages