We are using V8 version 5.3.332 . When we attach a debugger, we are able to 
see all the files we compiled in debugger (node-inspector). We have got one 
requirement that we need to hide certain JS script files from showing up in 
debugger. I explored a bit in V8 API and thought ScriptOrigin api would 
help us to achieve this but unfortunately that did not help.
I thought, especially resource_is_embedder_debug_script & resource_is_opaque 
parameters 
of ScriptOrigin constructor will do the job.

ScriptOrigin 
scriptOrigin(scriptFileName,Local<Integer>(),Local<Integer>(),Local<Boolean>(),Local<Integer>(),Boolean::New(isolate,false),Local<Value>(),Boolean::New(isolate,true));
MaybeLocal<Script> script = Script::Compile(context, source, &scriptOrigin);


Can you please help if there a any way to achieve my requirement.

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to