From c1a3100cb9a1c5e53a86809b5ac4c2443118e344 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 12 May 2015 17:13:23 +0200 Subject: [PATCH] add conveninet break point based on row and column --- src/lexer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index 4346edb..376a3d8 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -48,6 +48,7 @@ #endif #if !defined(NDEBUG) && defined(_MSC_VER) +static void check_me(char *name); static Bool show_attrs = yes; #define MX_TXT 5 static char buffer[MX_TXT+8]; /* NOTE extra for '...'\0 tail */ @@ -83,6 +84,10 @@ static void Show_Node( TidyDocImpl* doc, const char *msg, Node *node ) int line = ( doc->lexer ? doc->lexer->lines : 0 ); int col = ( doc->lexer ? doc->lexer->columns : 0 ); SPRTF("R=%d C=%d: ", line, col ); + // DEBUG: Be able to set a TRAP on a SPECIFIC row,col + if ((line == 6) && (col == 33)) { + check_me("Show_Node"); // just a debug trap + } if (lexer && lexer->token && (lexer->token->type == TextNode)) { if (show_attrs) { uint len = node->end - node->start;