Runtime Error Processing WASM
1、debug.cpp is:
2、debg.hpp
3、but console is
4、log is
5、in /usr/local/eosio/include/eosiolib/contracts.dox illustrate
5、whent i modify to
it produce the same error
you need to compile your cpp into wast using eosiocpp first.
I aready have compiled use eosiocpp:
eosiocpp -o debug.wast debug.cpp
eosiocpp -g debug.abi debug.cpp
But still occure the above error
from your logs looks like cleos failed to locate your wast file, please try to use set code and set abi instead of set contract:
cleos set code account wastFileFullPath
cleos set abi account abiFileFullPath
1、when use
cleos set code account wastFileFullPath
cleos set abi account abiFileFullPath
set code still have the same error:
2、log error still is:
3、debug.cpp
4、debug.hpp

Your function signature is not correct, please refer to the MARCO:
#define EOSIO_ABI( TYPE, MEMBERS ) \
extern "C" { \
void apply( uint64_t receiver, uint64_t code, uint64_t action ) { \
auto self = receiver; \
if( action == N(onerror)) { \
/* onerror is only valid if it is for the "eosio" code account and authorized by "eosio"'s "active permission */ \
eosio_assert(code == N(eosio), "onerror action's are only valid from the \"eosio\" system account"); \
} \
if( code == self || action == N(onerror) ) { \
TYPE thiscontract( self ); \
switch( action ) { \
EOSIO_API( TYPE, MEMBERS ) \
} \
/* does not allow destructor of thiscontract to run: eosio_exit(0); */ \
} \
} \
} \
now ,when i modify debug.cpp , set code && set abi are ok,
but generated another error , although i use -p debug:
Error 3050000: Action validate exception
2、on the other hand,in the tutorials, it's --acope is aredly not apply
