File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
hxcpp-debug-server/hxcpp/debug/jsonrpc Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,21 @@ class Server {
235
235
}
236
236
237
237
private function generateFilePathMaps () {
238
+ #if scriptable
239
+ var isUpdate = path2file .keys ().hasNext ();
240
+ #end
238
241
var fullPathes = Debugger .getFilesFullPath ();
239
242
var files = Debugger .getFiles ();
240
243
for (i in 0 ... files .length ) {
241
244
var file = files [i ];
242
245
var path = fullPathes [i ];
246
+
247
+ #if scriptable
248
+ if (isUpdate && ! path2file .exists (path2Key (path )) && ! haxe.io. Path .isAbsolute (path )) {
249
+ log (" Warning: cppia script was loaded containing relative source file paths. Make sure the script is compiled with -D cppia.absolute-source-paths" );
250
+ }
251
+ #end
252
+
243
253
path2file [path2Key (path )] = file ;
244
254
file2path [path2Key (file )] = path ;
245
255
}
You can’t perform that action at this time.
0 commit comments