Back to X64dbg

DbgSetCommentAt

docs/developers/functions/debug/DbgSetCommentAt.md

2026.04.20649 B
Original Source

DbgSetCommentAt

Set a comment at the given address.

c++
bool DbgSetCommentAt(duint addr, const char* text)

Parameters

addr The address to comment.

text The comment in UTF-8 encoding.

Return Value

true if the function is successful, false otherwise.

Example

c++
DbgSetCommentAt(DbgValFromString("dis.sel()"), "This is the currently selected instruction");