planck

Planck ClojureScript REPL
johanatan 2016-06-28T02:54:13.000575Z

@mfikes: hmm, can't seem to find any way to build WebKit for only C. There's --minimal and --webkit-only flags...

johanatan 2016-06-28T07:02:28.000577Z

@mfikes: so, I obtained a debug JavaScriptCore.framework via the command: /Tools/Scripts/build-webkit --debug --cmakeargs="-DSHARED_CORE=ON". However, trying to specify it for our program is proving difficult.

johanatan 2016-06-28T07:05:22.000580Z

I've tried: 1) add the parent of JavaScriptCore.framework via -F (i.e., .../webkit/WebKitBuild/Debug) and then -framework JavaScriptCore. But this just picked up the release version installed in /Library/Frameworks. 2) Variation of above but using -L and -l instead of -F and -framework (stupid I know but someone on the internet suggested it so I tried it :)) 3) Variation of #1 but with JavaScriptCore.framework renamed to JavaScriptCoreDebug.framework and -framework JavaScriptCoreDebug. <-- this seems most promising as /Library/Frameworks is locked down-- no modifications or additions even as sudo. However, this failed-- it just couldn't find it at all.

johanatan 2016-06-28T07:05:42.000581Z

I'm thinking that a 'deep rename' must be performed for this to work (and not merely a superficial 'folder rename').

johanatan 2016-06-28T07:05:46.000582Z

Any ideas?

johanatan 2016-06-28T07:10:12.000585Z

[I think the .framework approach is vastly superior to my previous libtool-combined object file approach (as there were duplicate symbols forcing me to (hopefully intelligently but still likely not infallibly) choose the best candidates from a number of conflicting .o files].

johanatan 2016-06-28T07:12:17.000588Z

[Oh, and I couldn't just specify all of the separate .o files in the linker flags as that caused the maximum shell command length to be exceeded].

mfikes 2016-06-28T12:40:50.000590Z

No ideas… I’ve never tried to debug JavaScriptCore itself before. Any time it has previously crashed (extremely rare), I recall seeing stack traces in Xcode.

johanatan 2016-06-28T16:33:30.000591Z

@mfikes: Ok, well I just mailed the webkit-dev mailing list. Hopefully they will respond.