Hi, I experimented with your approach mentioned and created the origin as follows.
v8::ScriptOrigin origin(originName,v8::Local<v8::Integer>(),v8::Local<v8::Integer>(),v8::Local<v8::Boolean>(), v8::Local<v8::Integer>(), v8::Boolean::New(isolate, true), v8::Local<v8::Value>(), v8::Local<v8::Boolean>()); The flag is_embedder_debug_script is checked in V8Debugger::getCompiledScripts() which skips the scripts for which the flag has been set and displays only the others. I tested it with multiple contexts and it is showing only those for which is_embedder_debug_script is not set to false. Hope this is of help for you. regards, Anoop R. S. On Wednesday, 17 May 2017 16:49:26 UTC+5:30, Srini Edara wrote: > > 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-users mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
