Logo de Debugger

Debugger

Organisation
allthingsida
debugger

IDA debugger operations. Use when asked to set breakpoints, patch bytes, add conditions, or manage a patch inventory.

Présentation

Éditeurallthingsida
Dépôtidasql-skills
Nom de la compétencedebugger
Étoiles
50
Forks
10
Fichiers inclus
1
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 1 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par allthingsida sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Debugger dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/allthingsida/idasql-skills/tree/main/plugins/idasql/skills/debugger
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/allthingsida/idasql-skills.git /tmp/idasql-skills
mkdir -p .claude/skills
cp -r /tmp/idasql-skills/plugins/idasql/skills/debugger .claude/skills/debugger
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Debugger dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Debugger dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Debugger n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.


Trigger Intents

Use this skill when user asks to:

  • add/remove/modify breakpoints
  • patch bytes or revert patches
  • create patch inventories and debugging action plans
  • instrument analysis-driven break/watch workflows

Route to:

  • analysis/xrefs for selecting meaningful targets first
  • disassembly for opcode-level patch context
  • annotations for documenting patch rationale and outcomes

Do This First (Warm-Start Sequence)

sql
-- 1) Current breakpoint inventory
SELECT printf('0x%X', addr) AS addr, type_name, enabled
FROM breakpoints
ORDER BY breakpoints.addr;

-- 2) Current patch inventory (fast: backed by IDA's patch list)
SELECT printf('0x%X', addr) AS addr, original_value, value AS patched_value
FROM bytes WHERE is_patched = 1
ORDER BY bytes.addr
LIMIT 50;

-- 3) Validate target bytes before patch
SELECT addr, value, original_value, is_patched
FROM bytes
WHERE addr = 0x401000;

Interpretation guidance:

  • Confirm existing instrumentation before adding more.
  • Always snapshot current/original byte state before mutating.

Failure and Recovery

  • Breakpoint insert/update failed:
    • Validate address existence and hardware size/type compatibility.
  • Patch verification mismatch:
    • Re-read bytes (and WHERE is_patched = 1), then retry with precise address.
  • Unintended patch side effects:
    • Revert with DELETE FROM bytes WHERE addr = ... and reassess target instruction context.

Handoff Patterns

  1. debugger -> disassembly to validate instruction semantics around patch site.
  2. debugger -> xrefs to assess blast radius of patched/broken call paths.
  3. debugger -> annotations to leave durable analyst breadcrumbs.

breakpoints

Debugger breakpoints. Supports full CRUD (SELECT, INSERT, UPDATE, DELETE). Breakpoints persist in the IDB even without an active debugger session. folder_path is the folder-oriented spelling of IDA's breakpoint group; updating either updates the same underlying breakpoint grouping.

ColumnTypeRWDescription
addrINTRBreakpoint address
enabledINTRW1=enabled, 0=disabled
typeINTRWBreakpoint type (1=hw_write, 2=hw_read, 3=hw_rdwr, 4=software, 8=hw_exec)
type_nameTEXTRType name (software, hardware_write, etc.)
sizeINTRWBreakpoint size (for hardware breakpoints)
flagsINTRWBreakpoint flags
pass_countINTRWPass count before trigger
conditionTEXTRWCondition expression
loc_typeINTRLocation type code
loc_type_nameTEXTRLocation type (absolute, relative, symbolic, source)
moduleTEXTRModule path (relative breakpoints)
symbolTEXTRSymbol name (symbolic breakpoints)
offsetINTROffset (relative/symbolic)
source_fileTEXTRSource file (source breakpoints)
source_lineINTRSource line number
is_hardwareINTR1=hardware breakpoint
is_activeINTR1=currently active
groupTEXTRWBreakpoint group name
bptidINTRBreakpoint ID
folder_pathTEXTRWAlias for breakpoint group folder; NULL means root
full_pathTEXTRFull breakpoint dirtree path when available
sql
-- List all breakpoints
SELECT printf('0x%08X', addr) as addr, type_name, enabled, condition
FROM breakpoints;

-- Add software breakpoint
INSERT INTO breakpoints (addr) VALUES (0x401000);

-- Add hardware write watchpoint
INSERT INTO breakpoints (addr, type, size) VALUES (0x402000, 1, 4);

-- Add conditional breakpoint (at a different address than the plain one above)
INSERT INTO breakpoints (addr, condition) VALUES (0x401330, 'eax == 0');

-- Move breakpoint into/out of an IDA breakpoint folder
UPDATE breakpoints SET folder_path = 'idasql/breakpoints/network' WHERE addr = 0x401000;
UPDATE breakpoints SET folder_path = NULL WHERE addr = 0x401000;

-- Disable a breakpoint
UPDATE breakpoints SET enabled = 0 WHERE addr = 0x401000;

-- Delete a breakpoint
DELETE FROM breakpoints WHERE addr = 0x401000;

-- Find which functions have breakpoints (func_at also resolves tail chunks)
SELECT b.addr, f.name, b.type_name, b.enabled
FROM breakpoints b
JOIN func_at(b.addr) f;

bytes (Byte Patching)

Pure mapped-byte program view with patch support. This table is one row per mapped byte address; IDA item metadata such as size/type belongs to heads.

ColumnTypeRWDescription
addrINTRByte address
valueINTRWCurrent byte value, NULL when is_initialized = 0 (UPDATE patches 1 byte and initializes the byte)
wordINTRW2-byte little-endian value (UPDATE patches 2 bytes)
dwordINTRW4-byte little-endian value (UPDATE patches 4 bytes)
qwordINTRW8-byte little-endian value (UPDATE patches 8 bytes)
original_valueINTROriginal byte value before patch
is_patchedINTR1 if byte differs from original, or is an uninitialized byte a patch initialized (even with 0); WHERE is_patched = 1 enumerates patches fast and lists the same bytes
is_initializedINTR1 if the byte is loaded from the image, 0 for mapped-but-uninitialized (e.g. BSS)
fposINTRPhysical/input file offset (NULL when unavailable)

Revert a patch with DELETE FROM bytes WHERE addr = ... (or WHERE is_patched = 1). Patching an uninitialized byte initializes it (even with 0, which is a real change from NULL); DELETE returns it to the uninitialized NULL state. UPDATE bytes SET value = value therefore fails on a BSS byte — the read side is NULL.

Writes take an exact integer: 144, 0x90, '144' or 144.0. Text such as '0x90', a fraction (144.5), a blob, or a value too wide for the column is refused with the reason. A qword above 0x7FFFFFFFFFFFFFFF is written as hex (0xFFFFFFFFFFFFFFFF) or as its signed value (-1).

sql
-- Read one address
SELECT addr, value, original_value, is_patched
FROM bytes WHERE addr = 0x401000;

-- Read a byte range, including item-tail bytes
SELECT addr, value
FROM bytes
WHERE addr >= 0x401000 AND addr < 0x401010
ORDER BY addr;

-- Get item metadata separately
SELECT addr, size, type, flags, disasm
FROM heads
WHERE addr = 0x401000;

-- Patch via table update (single byte, or width columns word/dword/qword)
UPDATE bytes SET value = 0x90 WHERE addr = 0x401000;
UPDATE bytes SET dword = 0x90909090 WHERE addr = 0x401000;  -- little-endian

-- Inspect patch inventory (fast: backed by IDA's patch list)
SELECT printf('0x%X', addr) AS addr, original_value, value AS patched_value
FROM bytes WHERE is_patched = 1 ORDER BY bytes.addr LIMIT 20;

-- Persist once done
SELECT save_database();

bytes — Patching (write surface)

All byte patching is done through the writable bytes table.

ColumnRWMeaning
valueRWCurrent byte; UPDATE patches 1 byte
word / dword / qwordRWUPDATE patches 2/4/8 bytes little-endian
original_valueROriginal (pre-patch) byte
is_patchedR1 if patched; WHERE is_patched = 1 enumerates patches fast
sql
SELECT printf('0x%X', addr) AS addr,
       printf('0x%02X', original_value) AS old,
       printf('0x%02X', value) AS new
FROM bytes WHERE is_patched = 1
ORDER BY bytes.addr;

Byte Access via the bytes Table

All byte reads and patches go through the bytes table. Bounded-read shapes are documented in data; this skill focuses on the patching workflow. load_file_bytes(...) writes a file's bytes into the IDB at a given range; use it when the patch content already lives in a file.

Function / ShapeDescription
SELECT hex(blob_concat(value)) FROM (SELECT value FROM bytes WHERE start_addr = X AND n = N ORDER BY addr)Read N bytes as uppercase hex
SELECT blob_concat(value) FROM (SELECT value FROM bytes WHERE start_addr = X AND n = N ORDER BY addr)Read N bytes as BLOB
load_file_bytes(path, file_offset, addr, size[, patchable])Write a file's bytes into the IDB at the target range
sql
-- Read 16 bytes as hex
SELECT hex(blob_concat(value))
FROM (SELECT value FROM bytes WHERE start_addr = 0x401000 AND n = 16 ORDER BY addr);

-- Patch one byte (example: NOP) and a 4-byte little-endian value
UPDATE bytes SET value = 0x90 WHERE addr = 0x401000;
UPDATE bytes SET dword = 0x90909090 WHERE addr = 0x401000;

-- Verify current vs original
SELECT value AS current, original_value AS original
FROM bytes WHERE addr = 0x401000;

-- Revert patch (one byte, or every patch)
DELETE FROM bytes WHERE addr = 0x401000;
DELETE FROM bytes WHERE is_patched = 1;

-- Persist patches explicitly
SELECT save_database();

Analysis-Driven Breakpoint Workflows

Set breakpoints on all callers of a security-sensitive API

Use disasm_calls to find every call site and batch-insert breakpoints:

sql
-- Breakpoint on every call to VirtualAlloc (or similar)
INSERT INTO breakpoints (addr)
SELECT addr FROM disasm_calls WHERE callee_name LIKE '%VirtualAlloc%';

-- Verify
SELECT printf('0x%08X', addr) AS addr, type_name, enabled
FROM breakpoints;

Watchpoints on struct fields discovered via type analysis

After recovering a struct, set hardware watchpoints on specific field offsets:

sql
-- Hardware write watchpoint on a 4-byte field (e.g., config.flags at base+0x10)
-- First, find where the struct base is stored (requires manual analysis)
INSERT INTO breakpoints (addr, type, size) VALUES (0x402010, 1, 4);
-- type=1 is hardware_write, size=4 for DWORD field

Conditional breakpoints from decompiler analysis

Set breakpoints that only trigger when specific conditions are met:

sql
-- Break when first argument (rcx on x64 fastcall) equals a specific enum value
INSERT INTO breakpoints (addr, condition)
VALUES (0x401000, 'rcx == 3');

-- Break on error return
INSERT INTO breakpoints (addr, condition)
VALUES (0x401050, 'rax == 0xFFFFFFFF');

Patching Workflows

NOP out anti-debug checks

Find and neutralize IsDebuggerPresent checks:

sql
-- Find calls to IsDebuggerPresent
SELECT dc.addr, (SELECT name FROM funcs WHERE addr = dc.func_addr) AS func_name,
       disasm_at(dc.addr, 2) AS context
FROM disasm_calls dc
WHERE dc.callee_name LIKE '%IsDebuggerPresent%';

-- Patch the conditional jump after the check (example: jnz → nop nop)
-- First inspect the instruction after the call
SELECT disasm_at(0x401030, 3);
-- Then patch (adjust addresses based on actual binary)
UPDATE bytes SET value = 0x90 WHERE addr = 0x401035;
UPDATE bytes SET value = 0x90 WHERE addr = 0x401036;

Inventory all patches and generate report

sql
-- Full patch report: what was changed and where
SELECT printf('0x%X', b.addr) AS addr,
       (SELECT name FROM func_at(b.addr) LIMIT 1) AS func_name,
       printf('0x%02X', b.original_value) AS original,
       printf('0x%02X', b.value) AS patched,
       disasm_at(b.addr) AS context
FROM bytes b WHERE b.is_patched = 1
ORDER BY b.addr;

Performance Notes

TableSizeConstraintNotes
breakpointsSmall (<100 typical)none neededAlways fast
bytesAll mapped bytesaddrCritical — constrain to one address or a tight range
bytes WHERE is_patched = 1Small (patch count)is_patched = 1Fast — iterates only patched locations via IDA's patch list
  • breakpoints table is small — full scans are fine.
  • bytes table emits one row per mapped byte. Use WHERE addr = X or a tight addr range.
  • bytes WHERE is_patched = 1 iterates only patched locations — always fast.

See Also

  • disassembly — instruction context around a patch site (disasm_at, operand semantics).
  • annotations — record patch rationale via comments/bookmarks before mutating.
  • data — canonical owner of byte-read shapes (table vs. scalar disambiguation).

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Debugger ?

IDA debugger operations. Use when asked to set breakpoints, patch bytes, add conditions, or manage a patch inventory.

Pourquoi utiliser Debugger sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Debugger se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Debugger dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/allthingsida/idasql-skills/tree/main/plugins/idasql/skills/debugger. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Debugger ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Debugger ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Debugger avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Debugger est-elle gratuite ?

Cette compétence est publiée sur GitHub par allthingsida. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇