@@ -72,7 +72,8 @@ multiple pieces of information encoded as a string. Those encodings are indicate
7272
7373 interface DebugInformation {
7474 hash: string; // hex-encoded UInt160
75- documents?: string[]; // file paths
75+ documents?: string[]; // absolute or relative file paths
76+ document-root?: string | null; // project root
7677 events?: Event[];
7778 methods?: Method[];
7879 "static-variables"?: Variable[];
@@ -173,12 +174,23 @@ debug information. The hash value is stored as a hex encoded string with an opti
173174
174175==== documents ====
175176
176- This property stores an array of file paths, used in sequence point data. These paths should be full file
177- paths as they existed on the machine where the contract was compiled. Neo Smart Contract Debugger has
178- the ability to automatically discover differences in paths between compiling and debugging machine,
179- plus supports manual source file mapping for cases where the mapping cannot be determined automatically.
177+ This property stores an array of file paths, used in sequence point data. These paths can be absolute or
178+ relative, pointing to the file paths of source files as they existed on the machine where the contract was
179+ compiled.
180+
181+ Neo Smart Contract Debugger has the ability to automatically discover differences in paths between compiling
182+ and debugging machine, plus supports manual source file mapping for cases where the mapping cannot be determined
183+ automatically.
184+
180185If omitted, this property defaults to an empty array.
181186
187+ ==== document-root ====
188+
189+ This property stores the root folder path for the contract source files. Releative paths in the documents
190+ array are treated as relative to the document-root path.
191+
192+ If omitted or null, all elements of the documents array are treated as absolute paths.
193+
182194==== static-variables ====
183195
184196This property stores an array of Variable types, representing the static fields associated with this contract.
0 commit comments