You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>See <ahref="https://developer.chrome.com/blog/wasm-debugging-2020">the DevTools team's official introduction</a> for more details about the extension.</p>
176
177
<p><imgsrc="./chrome-devtools.png" alt="" /></p>
177
178
<p>Note that the function names in the stack trace are mangled. You can demangle them using <code>swift demangle</code> command.</p>
178
-
<p>Unfortunately, variable inspection is unavailable since Swift depends on its own mechanisms to do that instead of DWARF's structure type feature. (See <ahref="https://github.com/swiftwasm/swift/issues/593">this thread</a> for more details)</p>
179
+
<p>Unfortunately, variable inspection is unavailable since Swift depends on its own mechanisms to do that instead of DWARF's structure type feature. If you need this feature, you can use the enhanced extension below.</p>
180
+
<h3><aclass="header" href="#enhanced-dwarf-extension-for-swift" id="enhanced-dwarf-extension-for-swift">Enhanced DWARF Extension for Swift</a></h3>
181
+
<p>For a better Swift debugging experience, there's also an enhanced version of the DWARF extension specifically for Swift. This extension enables:</p>
182
+
<ul>
183
+
<li>Breakpoint setting and Swift code inspection</li>
184
+
<li>Human-readable call stack frames</li>
185
+
<li>Swift variable value inspection</li>
186
+
</ul>
187
+
<p>To install this enhanced extension:</p>
188
+
<ol>
189
+
<li>First, uninstall the official "C/C++ DevTools Support (DWARF)" extension if you have it installed</li>
190
+
<li>Download the extension ZIP file from <ahref="https://github.com/GoodNotes/devtools-frontend/releases/tag/swift-0.2.3.0">GitHub Releases</a></li>
191
+
<li>Go to <code>chrome://extensions/</code> and enable "Developer mode"</li>
192
+
<li>Drag and drop the downloaded ZIP file into the page</li>
193
+
</ol>
194
+
<p>When you close and reopen the DevTools window, DevTools will suggest reloading itself to apply settings.</p>
195
+
<p>Note: There is a known issue where some JavaScriptKit types like <code>JSObject</code> and <code>JSValue</code> are not shown in pretty format in the variables view.</p>
<p>See <ahref="https://developer.chrome.com/blog/wasm-debugging-2020">the DevTools team's official introduction</a> for more details about the extension.</p>
<p>Note that the function names in the stack trace are mangled. You can demangle them using <code>swift demangle</code> command.</p>
773
-
<p>Unfortunately, variable inspection is unavailable since Swift depends on its own mechanisms to do that instead of DWARF's structure type feature. (See <ahref="https://github.com/swiftwasm/swift/issues/593">this thread</a> for more details)</p>
774
+
<p>Unfortunately, variable inspection is unavailable since Swift depends on its own mechanisms to do that instead of DWARF's structure type feature. If you need this feature, you can use the enhanced extension below.</p>
775
+
<h3><aclass="header" href="#enhanced-dwarf-extension-for-swift" id="enhanced-dwarf-extension-for-swift">Enhanced DWARF Extension for Swift</a></h3>
776
+
<p>For a better Swift debugging experience, there's also an enhanced version of the DWARF extension specifically for Swift. This extension enables:</p>
777
+
<ul>
778
+
<li>Breakpoint setting and Swift code inspection</li>
779
+
<li>Human-readable call stack frames</li>
780
+
<li>Swift variable value inspection</li>
781
+
</ul>
782
+
<p>To install this enhanced extension:</p>
783
+
<ol>
784
+
<li>First, uninstall the official "C/C++ DevTools Support (DWARF)" extension if you have it installed</li>
785
+
<li>Download the extension ZIP file from <ahref="https://github.com/GoodNotes/devtools-frontend/releases/tag/swift-0.2.3.0">GitHub Releases</a></li>
786
+
<li>Go to <code>chrome://extensions/</code> and enable "Developer mode"</li>
787
+
<li>Drag and drop the downloaded ZIP file into the page</li>
788
+
</ol>
789
+
<p>When you close and reopen the DevTools window, DevTools will suggest reloading itself to apply settings.</p>
790
+
<p>Note: There is a known issue where some JavaScriptKit types like <code>JSObject</code> and <code>JSValue</code> are not shown in pretty format in the variables view.</p>
0 commit comments