你有在運行RunUO非常有幫助

沒有設定這個紀錄往往,抓錯誤找不太到吧

每次都很頭痛,現再我分享一個妙招

可以讓你看是那個 .cs 檔案錯


 

未使用前:

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Engines.Craft.CraftItem.CompleteCraft(Int32 quality, Boolean makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CustomCraft customCraft)
   at Server.Engines.Craft.CraftItem.InternalTimer.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)


 

使用後:

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Engines.Craft.CraftItem.CompleteCraft(Int32 quality, Boolean makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CustomCraft customCraft) in e:\TEST\TC\Scripts\Engines\Craft\Core\CraftItem.cs:line 1192
   at Server.Engines.Craft.CraftItem.InternalTimer.OnTick() in e:\TEST\TC\Scripts\Engines\Craft\Core\CraftItem.cs:line 1462
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)


 

看到錯誤檔案路徑吧!!    修正腳本很大的幫助

我該如何設定?

第一步:找出執行檔案" RunUO.exe "

第二步:點執行檔案按右鍵 "建立捷徑"

第三步:資料夾會出現新的執行檔案名稱" 捷徑 -  RunUO "

第四步:在按剛才建立的 " 捷徑 -  RunUO " 按右鍵點選 " 內容 "

第五步:在看到 "目標" ("E:\TEST\TC\RunUO.exe")

第六步:目標裡頭加上一個代碼" -debug "

第七步:之後呈現( "E:\TEST\TC\RunUO.exe" -debug )

第八步:設定好按套用在確定

第九步:開始運行剛才建立新的捷徑

第十步:可以ㄧ值執行,祝你好運

 

還不懂這張圖片給看

  debug 001.PNG  

文章標籤

超級迷 發表在 痞客邦 留言(0) 人氣()