Debug Macros

34 views
Skip to first unread message

Anirudh Gadiraju

unread,
Jun 9, 2021, 2:30:58 PM6/9/21
to Chromium-dev
Hi all,
I am working on a personal project where I need to change the debugger keyword completely to banana, to do this I am trying to use a modified version of chromium to rename the keyword. I think keyword and property names are defined as macros but have no idea how to change it.
If anyone can guide me I would really appreciate it, I am a complete novice to chromium so the more detail the explanation is the better. 
Thanks and Regards
Anirudh

K. Moon

unread,
Jun 9, 2021, 5:46:49 PM6/9/21
to valka...@gmail.com, Chromium-dev
The "debugger" keyword is part of JavaScript, so the logical place to look is in the V8 source code.

Using the power of Code Search, we can formulate a query to pull up some places that contain the string "debugger" in them:

Depending on how much you know about compiler technology, you'll want to look for a file related to parsing. I'll leave the actual file as an exercise for the reader, as there's only a few candidate files to consider, and it'll probably help in the long run to go through the exercise of figuring it out from here.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e7a97fa2-b467-4edb-ac77-38fe8b48294cn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages