Same way as with BG:EE. Insert the following line: 'Program Options', 'Debug Mode', '1', underneath the "INSERT INTO options ROWS (" heading in the Baldur.ini file (should be located in My Documents\Baldur's Gate II - Enhanced Edition).
Didn't work for me, i tried "Debug Mode=1" and the suggestion of @TJ_Hooker "'Program Options', 'Debug Mode', '1',", still ctrl+space doesn't open the console !
if it doesn't work, start a new game, go through the opening monologues, then exit out. That should create all the needed variables. If you try to put in the cheat line before doing this, it'll erase that line and still put in all the variables (I'm guessing it deletes everything in the file and rewrites it, but I'm a character rigger, not a coder, I don't know these things). Good luck!
Dont use notepad. The spacing is very important. There is another thread here that has someone using a box to make it easy to copy/paste the line you add to baldurs.ini file. It makes it very easy to add it and have the proper spacing.
Make sure your folder/baldur.ini file is NOT SET to read only. I'm pretty sure this is the sole problem people are running into. It simply doesn't save the changes when you edit it.
Check your hotkeys of language keyboard services first if you're a non-english win users. Be sure those hotkeys never be conflict with CLUAconsole keys.
With the enhanced edition CLUA was working fine for me. I then installed the patches and Dragonspear and it isn't anymore. I checked the ini file and found that it was read only. It didn't matter that it was since debug mode was 1. However, it is now writeable just in case I need to change it later.
It appears that the patch has screwed things up somewhat. Any ideas how to rectify things?
By the way, people have been saying: don't use notepad for editing the ini file. I would suggest wordpad, though other programs such as notepad++ work equally well, probably textpad too but haven't checked with that one as it isn't on my current computer.
Comments
'Program Options', 'Debug Mode', '1',
underneath the "INSERT INTO options ROWS (" heading in the Baldur.ini file (should be located in My Documents\Baldur's Gate II - Enhanced Edition).
CLUAConsole:GetGlobal("NeeraRomanceActive","GLOBAL")
just says there's no such variable. Possibly because I haven't recruited her yet, but still.
The spacing is very important.
There is another thread here that has someone using a box to make it easy to copy/paste the line you add to baldurs.ini file. It makes it very easy to add it and have the proper spacing.
http://forum.baldursgate.com/discussion/24300/clua-console-for-bg2ee
Check and make sure read only is unchecked
I then installed the patches and Dragonspear and it isn't anymore.
I checked the ini file and found that it was read only. It didn't matter that it was since debug mode was 1.
However, it is now writeable just in case I need to change it later.
It appears that the patch has screwed things up somewhat. Any ideas how to rectify things?
By the way, people have been saying: don't use notepad for editing the ini file. I would suggest wordpad, though other programs such as notepad++ work equally well, probably textpad too but haven't checked with that one as it isn't on my current computer.
2.0 changed how you need to enable Debug Mode:
First, you need to edit "Baldur.lua", not "Baldur.ini". Actually, if you still have a Baldur.ini file, you may as well delete it.
Second, instead of the lines included in the description, you need to add the following line. It's position doesn't matter:
SetPrivateProfileString('Program Options','Debug Mode','1')
https://forums.beamdog.com/discussion/comment/728149/#Comment_728149