Skip to content

Instantly share code, notes, and snippets.

View chrisber's full-sized avatar

Christian Karl Bernasko chrisber

View GitHub Profile
@chrisber
chrisber / v8dotnet_lldb_osx_mono
Last active August 29, 2015 14:13
v8dotnet lldb on OSX with mono
sudo lldb
(lldb) target create mono
Current executable set to 'mono' (i386).
(lldb) run --debug V8.Net-Console.exe
Process 12784 launched: '/usr/bin/mono' (i386)
warning: (i386) /Library/Frameworks/Mono.framework/Versions/3.10.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
(lldb) c
Creating a V8Engine instance ... Done!
{
"includes": [
"common.gypi"
],
'variables':{
'base_dir%':'<(base_dir)',
'target_arch%':'x64',
'build_option%':'release',
},
Run till exit from #0 CreateHandleProxyTest () at Exports.cpp:610
0x000000004001c275 in ?? ()
Value returned is $1 = (HandleProxy *) 0x7fffe80a8d50
(gdb) p * (HandleProxy *) 0x7fffe80a8d50
$2 = {
<ProxyBase> = {
Type = HandleProxyClass
},
members of HandleProxy:
_ID = 117835012,
@chrisber
chrisber / v8dotnet_segmentation_fault.cs
Last active August 29, 2015 14:09
#v8dotnet segmentation fault
using System;
using System.IO;
using System.Threading;
using V8.Net;
namespace SegmentationFault
{
public class Alpha
{
Linux
<CustomCommands>
<CustomCommands>
<Command type="Execute" command="/opt/monodevelop/lib/monodevelop/bin/MonoDevelop.exe" workingdir="/opt/monodevelop/lib/monodevelop/bin">
<EnvironmentVariables>
<Variable name="MONODEVELOP_DEV_ADDINS" value="${TargetDir}" />
</EnvironmentVariables>
</Command>
</CustomCommands>