|
67 | 67 | </li> |
68 | 68 | <li class="toctree-l2"><a class="reference internal" href="#conventions">Conventions</a> |
69 | 69 | </li> |
| 70 | + <li class="toctree-l2"><a class="reference internal" href="#ide-configuration">IDE Configuration</a> |
| 71 | + </li> |
70 | 72 | </ul> |
71 | 73 | </li> |
72 | 74 | </ul> |
@@ -109,6 +111,8 @@ <h1 id="getting-started">Getting Started</h1> |
109 | 111 | <li><a href="#conventions">Conventions</a> this library follows some design rules. |
110 | 112 | They are hopefully intuitive, but understanding them may make your |
111 | 113 | first steps easier.</li> |
| 114 | +<li><a href="#ide-configuration">IDE configuration</a> I strongly recommend using |
| 115 | +an IDE that supports type-checking.</li> |
112 | 116 | </ul> |
113 | 117 | <h2 id="installation">Installation</h2> |
114 | 118 | <p>To use ghidralib, <strong>just drop <a href="https://github.com/msm-code/ghidralib/blob/master/ghidralib.py">this file</a> into your ghidra_scripts directory</strong>. |
@@ -276,6 +280,22 @@ <h2 id="conventions">Conventions</h2> |
276 | 280 | the desired object was not found.</p> |
277 | 281 | </li> |
278 | 282 | </ul> |
| 283 | +<h2 id="ide-configuration">IDE Configuration</h2> |
| 284 | +<p>I strongly recommend using an IDE that supports type-checking. This is why:</p> |
| 285 | +<p><img alt="" src="../typecheck.png" /></p> |
| 286 | +<p>I personally use is VS Code with Python extensions. If you install |
| 287 | +VsCode/VsCodium, a Python extension, and just drop ghidralib.py |
| 288 | +in the ghidra_scripts directory, then everything should "just work".</p> |
| 289 | +<p>If for some reason your script lives in a different directory than |
| 290 | +ghidralib, override the PYTHONPATH so the typechecker knows how to |
| 291 | +import it:</p> |
| 292 | +<pre><code class="language-json">{ |
| 293 | + "python.analysis.extraPaths": ["/home/you/Projects/ghidralib"], |
| 294 | + "terminal.integrated.env.windows": { |
| 295 | + "PYTHONPATH": "/home/you/Projects/ghidralib", |
| 296 | + } |
| 297 | +} |
| 298 | +</code></pre> |
279 | 299 |
|
280 | 300 | </div> |
281 | 301 | </div><footer> |
|
0 commit comments