14,953
edits
(fix typo) Tags: Mobile edit Mobile web edit |
|||
| Line 176: | Line 176: | ||
``` | ``` | ||
SQL syntax ... | SQL syntax ... | ||
``` | |||
</pre> | |||
=== Prompt for Direct Code Analysis === | |||
Use Case: When AI debugging tools aren't working (agents, IDEs, etc.), try a clean approach: Use web-based AI with just the code—no context, no error messages. Simply ask "What's wrong with this code?" or "Find any issues?" | |||
This fresh perspective often solves stubborn problems by avoiding bias from error messages and predetermined fix patterns, uncovering root causes that were previously missed. | |||
Example 1 | |||
<pre> | |||
Find any issues in this code: | |||
``` | |||
source code ... | |||
``` | |||
</pre> | |||
Example 2 | |||
<pre> | |||
What problems do you see in this code? | |||
``` | |||
source code ... | |||
``` | |||
</pre> | |||
Example 3 | |||
<pre> | |||
Review this code and identify potential issues: | |||
``` | |||
source code ... | |||
``` | ``` | ||
</pre> | </pre> | ||